mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Enderman.teleportRandomly()
Ability to trigger the vanilla "teleport randomly" mechanic of an enderman.
This commit is contained in:
parent
b4ece1619f
commit
eeea3358ab
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ public class CraftEnderman extends CraftMonster implements Enderman {
|
|||
super(server, entity);
|
||||
}
|
||||
|
||||
@Override public boolean teleportRandomly() { return getHandle().teleport(); } // Paper
|
||||
@Override
|
||||
public MaterialData getCarriedMaterial() {
|
||||
BlockState blockData = this.getHandle().getCarriedBlock();
|
||||
|
|
Loading…
Reference in a new issue