Commits
Doc authored and md_5 committed d7f9c1a86ac
1 1 | package org.bukkit.entity; |
2 2 | |
3 + | import org.bukkit.Location; |
3 4 | import org.jetbrains.annotations.ApiStatus; |
5 + | import org.jetbrains.annotations.NotNull; |
4 6 | |
5 7 | /** |
6 8 | * Represents a Creaking. |
7 9 | */ |
8 10 | Experimental | .
9 11 | public interface Creaking extends Monster { |
10 12 | |
13 + | /** |
14 + | * Gets the home location for this Creaking (ie where its corresponding |
15 + | * {@link org.bukkit.block.CreakingHeart} can be). |
16 + | * |
17 + | * @return the location of the home. |
18 + | */ |
19 + | |
20 + | public Location getHome(); |
21 + | |
22 + | /** |
23 + | * Sets the home location for this Creaking. |
24 + | * |
25 + | * @param location the location of the home. |
26 + | */ |
27 + | public void setHome( Location location); |
28 + | |
29 + | /** |
30 + | * Activate this Creaking to target and follow a player. |
31 + | * |
32 + | * @param player the target. |
33 + | */ |
34 + | public void activate( Player player); |
35 + | |
36 + | /** |
37 + | * Deactivate this Creaking from the current target player. |
38 + | */ |
39 + | public void deactivate(); |
40 + | |
41 + | /** |
42 + | * Gets if this Creaking is active. |
43 + | * |
44 + | * @return true if is active. |
45 + | */ |
46 + | public boolean isActive(); |
11 47 | } |