Add PlayerSpawned API for Endermites

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-12-10 10:39:39 +11:00
parent 83e42118d5
commit 3f4b83c996

View File

@ -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);
}