mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Add PlayerSpawned API for Endermites
By: md_5 <git@md-5.net>
This commit is contained in:
parent
83e42118d5
commit
3f4b83c996
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user