Constructor and Description |
---|
Poses() |
Modifier and Type | Method and Description |
---|---|
boolean |
addPose(String name,
org.bukkit.Location location)
Add a
Pose |
boolean |
addPose(String name,
org.bukkit.Location location,
boolean isDefault)
Add a
Pose |
void |
assumePose(org.bukkit.Location location)
Sets the yaw/pitch to the supplied
Location . |
void |
assumePose(String flag)
Sets the yaw/pitch to the stored pose, looked up by name.
|
void |
describe(org.bukkit.command.CommandSender sender,
int page) |
Pose |
getPose(String name) |
boolean |
hasPose(String pose) |
void |
load(DataKey key)
Loads a trait.
|
boolean |
removePose(String pose) |
void |
run()
Called every tick if overridden.
|
void |
save(DataKey key)
Saves a trait.
|
void |
setDefaultPose(String pose) |
public boolean addPose(String name, org.bukkit.Location location)
Pose
public boolean addPose(String name, org.bukkit.Location location, boolean isDefault)
Pose
public void assumePose(org.bukkit.Location location)
Location
.public void assumePose(String flag)
public void describe(org.bukkit.command.CommandSender sender, int page) throws CommandException
CommandException
public boolean hasPose(String pose)
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 removePose(String pose)
public void run()
Trait
public void setDefaultPose(String pose)
Copyright © 2021. All rights reserved.