From 72520b78bb45ad6e931843c128baaf2cd4017109 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 10 Dec 2018 10:39:39 +1100 Subject: Add PlayerSpawned API for Endermites --- src/main/java/org/bukkit/entity/Endermite.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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); } -- cgit v1.2.3