mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Enderman.teleportRandomly()
Ability to trigger the vanilla "teleport randomly" mechanic of an enderman.
This commit is contained in:
parent
1281d5b384
commit
228f9bab1c
1 changed files with 11 additions and 0 deletions
|
@ -10,6 +10,17 @@ import org.jetbrains.annotations.Nullable;
|
||||||
*/
|
*/
|
||||||
public interface Enderman extends Monster {
|
public interface Enderman extends Monster {
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Try to teleport the enderman to a random nearby location.
|
||||||
|
*
|
||||||
|
* May conditionally fail if the random location was not valid
|
||||||
|
* @return If the enderman teleported successfully or not
|
||||||
|
*/
|
||||||
|
|
||||||
|
public boolean teleportRandomly();
|
||||||
|
// Paper end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the id and data of the block that the Enderman is carrying.
|
* Gets the id and data of the block that the Enderman is carrying.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue