Enderman.teleportRandomly()

Ability to trigger the vanilla "teleport randomly" mechanic of an enderman.
This commit is contained in:
Aikar 2018-04-30 13:29:44 -04:00
parent b4ece1619f
commit eeea3358ab

View file

@ -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();