diff options
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 8 |
1 files changed, 8 insertions, 0 deletions
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(); } |