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
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);
|
super(server, entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override public boolean teleportRandomly() { return getHandle().teleport(); } // Paper
|
||||||
@Override
|
@Override
|
||||||
public MaterialData getCarriedMaterial() {
|
public MaterialData getCarriedMaterial() {
|
||||||
BlockState blockData = this.getHandle().getCarriedBlock();
|
BlockState blockData = this.getHandle().getCarriedBlock();
|
||||||
|
|
Loading…
Reference in a new issue