From 3f4b83c99692e4590fe3176028570e65f5256e71 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 10 Dec 2018 10:39:39 +1100 Subject: [PATCH] Add PlayerSpawned API for Endermites By: md_5 --- .../main/java/org/bukkit/entity/Endermite.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Endermite.java b/paper-api/src/main/java/org/bukkit/entity/Endermite.java index dc1fa5426b..d9be83961b 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Endermite.java +++ b/paper-api/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); }