Package com.booksaw.betterTeams.events
Class ChestManagement
java.lang.Object
com.booksaw.betterTeams.events.ChestManagement
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.LocationgetLocation(org.bukkit.block.Chest chest) static org.bukkit.LocationgetOtherSide(org.bukkit.block.Block block) Used to get the other side of a DoubleCheststatic booleanisSingleChest(org.bukkit.Location l1, org.bukkit.Location l2) Used to check the two locations after they were passed to getOtherSidevoidonBreak(org.bukkit.event.block.BlockBreakEvent e) voidonExplode(org.bukkit.event.block.BlockExplodeEvent e) voidonExplode(org.bukkit.event.entity.EntityExplodeEvent e) voidonHopper(org.bukkit.event.inventory.InventoryMoveItemEvent e) voidonJoin(org.bukkit.event.player.PlayerJoinEvent e) voidonOpen(org.bukkit.event.player.PlayerInteractEvent e)
-
Field Details
-
enableClaims
public static boolean enableClaims
-
-
Constructor Details
-
ChestManagement
public ChestManagement()
-
-
Method Details
-
getLocation
public static org.bukkit.Location getLocation(org.bukkit.block.Chest chest) -
getOtherSide
public static org.bukkit.Location getOtherSide(org.bukkit.block.Block block) Used to get the other side of a DoubleChest- Parameters:
block- A Chest (either DoubleChest or Single)- Returns:
- The other side Location
-
isSingleChest
public static boolean isSingleChest(org.bukkit.Location l1, org.bukkit.Location l2) Used to check the two locations after they were passed to getOtherSide- Parameters:
l1- One of the two sidesl2- One of the two sides- Returns:
-
onOpen
public void onOpen(org.bukkit.event.player.PlayerInteractEvent e) -
onBreak
public void onBreak(org.bukkit.event.block.BlockBreakEvent e) -
onHopper
public void onHopper(org.bukkit.event.inventory.InventoryMoveItemEvent e) -
onExplode
public void onExplode(org.bukkit.event.block.BlockExplodeEvent e) -
onExplode
public void onExplode(org.bukkit.event.entity.EntityExplodeEvent e) -
onJoin
public void onJoin(org.bukkit.event.player.PlayerJoinEvent e)
-