diff options
author | md_5 <git@md-5.net> | 2017-06-12 19:23:24 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-06-12 19:23:24 +1000 |
commit | 2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c (patch) | |
tree | fdd8ca80cdb8a05f3858eb50e20a42d666939ff7 | |
parent | f85977ae6f4ca213347d04c48cc93058ed742db5 (diff) | |
download | craftbukkit-2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c.tar craftbukkit-2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c.tar.gz craftbukkit-2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c.tar.lz craftbukkit-2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c.tar.xz craftbukkit-2a2d6d6295cbaf35d29abdcdd1e8cd65f80b134c.zip |
Add PistonMoveReaction getters for Entity
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 20270268..34dac82f 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(); |