From 052c8e5eb578f9c62414f9002f8816e82a198cda Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Jun 2017 19:23:14 +1000 Subject: Add PistonMoveReaction getters for Entity --- src/main/java/org/bukkit/entity/Entity.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 941be7bb..84ae807c 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -12,6 +12,7 @@ import org.bukkit.util.Vector; import java.util.List; import java.util.Set; import java.util.UUID; +import org.bukkit.block.PistonMoveReaction; import org.bukkit.command.CommandSender; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; @@ -468,4 +469,11 @@ public interface Entity extends Metadatable, CommandSender, Nameable { * @return true if the tag was successfully removed */ boolean removeScoreboardTag(String tag); + + /** + * Returns the reaction of the entity when moved by a piston. + * + * @return reaction + */ + PistonMoveReaction getPistonMoveReaction(); } -- cgit v1.2.3