mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#1086: Add Creaking methods
This commit is contained in:
parent
8c69edd891
commit
d7f9c1a86a
1 changed files with 36 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.bukkit.Location;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Creaking.
|
* Represents a Creaking.
|
||||||
|
@ -8,4 +10,38 @@ import org.jetbrains.annotations.ApiStatus;
|
||||||
@ApiStatus.Experimental
|
@ApiStatus.Experimental
|
||||||
public interface Creaking extends Monster {
|
public interface Creaking extends Monster {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the home location for this Creaking (ie where its corresponding
|
||||||
|
* {@link org.bukkit.block.CreakingHeart} can be).
|
||||||
|
*
|
||||||
|
* @return the location of the home.
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
public Location getHome();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the home location for this Creaking.
|
||||||
|
*
|
||||||
|
* @param location the location of the home.
|
||||||
|
*/
|
||||||
|
public void setHome(@NotNull Location location);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Activate this Creaking to target and follow a player.
|
||||||
|
*
|
||||||
|
* @param player the target.
|
||||||
|
*/
|
||||||
|
public void activate(@NotNull Player player);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deactivate this Creaking from the current target player.
|
||||||
|
*/
|
||||||
|
public void deactivate();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets if this Creaking is active.
|
||||||
|
*
|
||||||
|
* @return true if is active.
|
||||||
|
*/
|
||||||
|
public boolean isActive();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue