Entity#fromMobSpawner()
This commit is contained in:
@ -805,5 +805,12 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
|||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
Location getOrigin();
|
Location getOrigin();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this entity was spawned from a mob spawner.
|
||||||
|
*
|
||||||
|
* @return True if entity spawned from a mob spawner
|
||||||
|
*/
|
||||||
|
boolean fromMobSpawner();
|
||||||
// Paper end
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user