diff options
author | md_5 <git@md-5.net> | 2018-12-10 10:39:39 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-10 10:39:39 +1100 |
commit | 72520b78bb45ad6e931843c128baaf2cd4017109 (patch) | |
tree | a8c722c612433fb6d5b2d66388368caa2d813fe3 | |
parent | db06c80d7f7c8deeea1f6caf9cef549064897d05 (diff) | |
download | bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar.gz bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar.lz bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar.xz bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.zip |
Add PlayerSpawned API for Endermites
-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); } |