Constructor and Description |
---|
Anchors() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAnchor(String name,
org.bukkit.Location location) |
Anchor |
getAnchor(String name) |
List<Anchor> |
getAnchors() |
void |
load(DataKey key)
Loads a trait.
|
boolean |
removeAnchor(Anchor anchor) |
void |
save(DataKey key)
Saves a trait.
|
public boolean addAnchor(String name, org.bukkit.Location location)
public void load(DataKey key) throws NPCLoadException
Trait
load
in class Trait
key
- DataKey to load fromNPCLoadException
- Thrown if this trait failed to load properlypublic boolean removeAnchor(Anchor anchor)
Copyright © 2021. All rights reserved.