Class HoneypotBlockObject

java.lang.Object
org.reprogle.honeypot.storagemanager.HoneypotBlockObject

public abstract class HoneypotBlockObject extends Object
A class representing a Honeypot Block object. Includes methods for getting all values of a Honeypot block object, which can be returned via the HoneypotBlockManager class
See Also:
  • Constructor Details

    • HoneypotBlockObject

      protected HoneypotBlockObject(org.bukkit.block.Block block, String action)
      Create a HoneypotBlockObject
      Parameters:
      block - The Block object of the Honeypot
      action - The action of the Honeypot
    • HoneypotBlockObject

      protected HoneypotBlockObject(String worldName, String coordinates, String action)
      Used for GUI, create a Honeypot based off of strings and not Block objects
      Parameters:
      worldName - The world the block is in
      coordinates - The coordinates of the block
      action - The action of the Honeypot
  • Method Details

    • getCoordinates

      public abstract String getCoordinates()
      Get the String formatted coordinates of the Honeypot
      Returns:
      Coordinates
    • getLocation

      public abstract org.bukkit.Location getLocation()
      Get the Location object of the Honeypot
      Returns:
      Location
    • getAction

      public abstract String getAction()
      Get the action of the Honeypot
      Returns:
      action
    • getWorld

      public abstract String getWorld()
      Get the world of the Honeypot
      Returns:
      world
    • getBlock

      public abstract org.bukkit.block.Block getBlock()
      Get the Block object of the Honeypot
      Returns:
      Honeypot Block object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object