Commits
md_5 authored 052c8e5eb57
5 5 | import org.bukkit.Nameable; |
6 6 | import org.bukkit.Server; |
7 7 | import org.bukkit.World; |
8 8 | import org.bukkit.event.entity.EntityDamageEvent; |
9 9 | import org.bukkit.metadata.Metadatable; |
10 10 | import org.bukkit.util.Vector; |
11 11 | |
12 12 | import java.util.List; |
13 13 | import java.util.Set; |
14 14 | import java.util.UUID; |
15 + | import org.bukkit.block.PistonMoveReaction; |
15 16 | import org.bukkit.command.CommandSender; |
16 17 | import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; |
17 18 | |
18 19 | /** |
19 20 | * Represents a base entity in the world |
20 21 | */ |
21 22 | public interface Entity extends Metadatable, CommandSender, Nameable { |
22 23 | |
23 24 | /** |
24 25 | * Gets the entity's current position |
461 462 | */ |
462 463 | boolean addScoreboardTag(String tag); |
463 464 | |
464 465 | /** |
465 466 | * Removes a given tag from this entity. |
466 467 | * |
467 468 | * @param tag the tag to remove |
468 469 | * @return true if the tag was successfully removed |
469 470 | */ |
470 471 | boolean removeScoreboardTag(String tag); |
472 + | |
473 + | /** |
474 + | * Returns the reaction of the entity when moved by a piston. |
475 + | * |
476 + | * @return reaction |
477 + | */ |
478 + | PistonMoveReaction getPistonMoveReaction(); |
471 479 | } |