Add PistonMoveReaction getters for Entity

This commit is contained in:
md_5 2017-06-12 19:23:24 +10:00
parent f85977ae6f
commit 2a2d6d6295

View File

@ -13,6 +13,7 @@ import org.bukkit.EntityEffect;
import org.bukkit.Location;
import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.block.PistonMoveReaction;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.event.entity.EntityDamageEvent;
@ -683,6 +684,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return getHandle().removeScoreboardTag(tag);
}
@Override
public PistonMoveReaction getPistonMoveReaction() {
return PistonMoveReaction.getById(getHandle().o_().ordinal()); // PAIL: rename
}
protected NBTTagCompound save() {
NBTTagCompound nbttagcompound = new NBTTagCompound();