From 2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Jun 2017 19:23:24 +1000 Subject: [PATCH] Add PistonMoveReaction getters for Entity --- .../java/org/bukkit/craftbukkit/entity/CraftEntity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 2027026854..34dac82f35 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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();