Class HoneypotBlockObject
java.lang.Object
org.reprogle.honeypot.storagemanager.HoneypotBlockObject
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-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHoneypotBlockObject(String worldName, String coordinates, String action) Used for GUI, create a Honeypot based off of strings and not Block objectsprotectedHoneypotBlockObject(org.bukkit.block.Block block, String action) Create a HoneypotBlockObject -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringGet the action of the Honeypotabstract org.bukkit.block.BlockgetBlock()Get the Block object of the Honeypotabstract StringGet the String formatted coordinates of the Honeypotabstract org.bukkit.LocationGet the Location object of the Honeypotabstract StringgetWorld()Get the world of the HoneypotinthashCode()
-
Constructor Details
-
HoneypotBlockObject
Create a HoneypotBlockObject- Parameters:
block- The Block object of the Honeypotaction- The action of the Honeypot
-
HoneypotBlockObject
Used for GUI, create a Honeypot based off of strings and not Block objects- Parameters:
worldName- The world the block is incoordinates- The coordinates of the blockaction- The action of the Honeypot
-
-
Method Details
-
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
Get the action of the Honeypot- Returns:
- action
-
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
-
hashCode
public int hashCode()
-