diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/Endermite.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Endermite.java b/src/main/java/org/bukkit/entity/Endermite.java index dc1fa542..d9be8396 100644 --- a/src/main/java/org/bukkit/entity/Endermite.java +++ b/src/main/java/org/bukkit/entity/Endermite.java @@ -1,4 +1,22 @@ package org.bukkit.entity; public interface Endermite extends Monster { + + /** + * Gets whether this Endermite was spawned by a player. + * + * An Endermite spawned by a player will be attacked by nearby Enderman. + * + * @return player spawned status + */ + boolean isPlayerSpawned(); + + /** + * Sets whether this Endermite was spawned by a player. + * + * An Endermite spawned by a player will be attacked by nearby Enderman. + * + * @param playerSpawned player spawned status + */ + void setPlayerSpawned(boolean playerSpawned); } |