Class ChestManagement

java.lang.Object
com.booksaw.betterTeams.events.ChestManagement
All Implemented Interfaces:
org.bukkit.event.Listener

public class ChestManagement extends Object implements org.bukkit.event.Listener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.Location
    getLocation(org.bukkit.block.Chest chest)
     
    static org.bukkit.Location
    getOtherSide(org.bukkit.block.Block block)
    Used to get the other side of a DoubleChest
    static boolean
    isSingleChest(org.bukkit.Location l1, org.bukkit.Location l2)
    Used to check the two locations after they were passed to getOtherSide
    void
    onBreak(org.bukkit.event.block.BlockBreakEvent e)
     
    void
    onExplode(org.bukkit.event.block.BlockExplodeEvent e)
     
    void
    onExplode(org.bukkit.event.entity.EntityExplodeEvent e)
     
    void
    onHopper(org.bukkit.event.inventory.InventoryMoveItemEvent e)
     
    void
    onJoin(org.bukkit.event.player.PlayerJoinEvent e)
     
    void
    onOpen(org.bukkit.event.player.PlayerInteractEvent e)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 sides
      l2 - 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)