Class Anchor

java.lang.Object
net.citizensnpcs.util.Anchor

public class Anchor extends Object
A named Location.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • getLocation

      public Location getLocation()
    • getName

      public String getName()
    • getUnloadedValue

      public String[] 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()
      Overrides:
      hashCode in class Object
    • isLoaded

      public boolean isLoaded()
    • load

      public boolean load()
      Attempts to load the unloaded value of the stored Location.
      Returns:
      whether the unloaded value could be loaded
      See Also:
    • stringValue

      public String stringValue()
      Returns:
      A string representation for use in saves.yml
    • toString

      public String toString()
      Overrides:
      toString in class Object