Commits

Doc authored and md_5 committed d7f9c1a86ac
#1086: Add Creaking methods
No tags

src/main/java/org/bukkit/entity/Creaking.java

Modified
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 @ApiStatus.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 + @NotNull
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(@NotNull 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(@NotNull 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 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut