Add PistonMoveReaction getters for Entity

This commit is contained in:
md_5 2017-06-12 19:23:14 +10:00
parent 494bb508ac
commit 052c8e5eb5

View file

@ -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();
}