Package net.citizensnpcs.util
Class Anchor
java.lang.Object
net.citizensnpcs.util.Anchor
A named
Location.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()String[]Returns a String[] of the 'world_name, x, y, z' information needed to create the Location that is associated with the Anchor, in that order.inthashCode()booleanisLoaded()booleanload()Attempts to load the unloaded value of the storedLocation.toString()
-
Constructor Details
-
Anchor
-
Anchor
-
-
Method Details
-
equals
-
getLocation
-
getName
-
getUnloadedValue
Returns a String[] of the 'world_name, x, y, z' information needed to create the Location that is associated with the Anchor, in that order.- Returns:
- a String array of the anchor's location data
-
hashCode
public int hashCode() -
isLoaded
public boolean isLoaded() -
load
public boolean load()Attempts to load the unloaded value of the storedLocation.- Returns:
- whether the unloaded value could be loaded
- See Also:
-
stringValue
- Returns:
- A string representation for use in saves.yml
-
toString
-