Class HoneypotBlockObject
java.lang.Object
org.reprogle.honeypot.common.storagemanager.HoneypotBlockObject
-
Constructor Summary
ConstructorsConstructorDescriptionHoneypotBlockObject(String worldName, String coordinates, String action) Used for GUI, create a Honeypot based off of strings and not Block objectsHoneypotBlockObject(org.bukkit.block.Block block, String action) Create a HoneypotBlockObject -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the action of the Honeypotorg.bukkit.block.BlockgetBlock()Get the Block object of the HoneypotGet the String formatted coordinates of the Honeypotorg.bukkit.LocationGet the Location object of the HoneypotgetWorld()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 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 org.bukkit.block.Block getBlock()Get the Block object of the Honeypot- Returns:
- Honeypot Block object
-
equals
-
hashCode
public int hashCode()
-