summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-10 10:39:39 +1100
committermd_5 <git@md-5.net>2018-12-10 10:39:39 +1100
commit72520b78bb45ad6e931843c128baaf2cd4017109 (patch)
treea8c722c612433fb6d5b2d66388368caa2d813fe3 /src
parentdb06c80d7f7c8deeea1f6caf9cef549064897d05 (diff)
downloadbukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar
bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar.gz
bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar.lz
bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.tar.xz
bukkit-72520b78bb45ad6e931843c128baaf2cd4017109.zip
Add PlayerSpawned API for Endermites
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Endermite.java18
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);
}