mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Add PlayerSpawned API for Endermites
By: md_5 <git@md-5.net>
This commit is contained in:
parent
83e42118d5
commit
3f4b83c996
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…
Reference in a new issue