mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add PlayerSpawned API for Endermites
This commit is contained in:
parent
db06c80d7f
commit
72520b78bb
1 changed files with 18 additions and 0 deletions
|
@ -1,4 +1,22 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
public interface Endermite extends Monster {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue