From 018aeb1c855d08b52f35ecf23c9f1a7e7b4ff952 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 12 Jun 2017 19:23:14 +1000 Subject: [PATCH] Add PistonMoveReaction getters for Entity By: md_5 --- paper-api/src/main/java/org/bukkit/entity/Entity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 941be7bb28..84ae807c04 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/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(); }