Package net.citizensnpcs.trait
Class Poses
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.Poses
Persists named
Pose
s.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add aPose
boolean
Add aPose
void
assumePose
(String flag) Sets the yaw/pitch to the stored pose, looked up by name.void
assumePose
(Location location) Sets the yaw/pitch to the suppliedLocation
.void
describe
(CommandSender sender, int page) boolean
void
Loads a trait.boolean
removePose
(String pose) void
run()
Called every tick if overridden.void
Saves a trait.void
setDefaultPose
(String pose)
-
Constructor Details
-
Poses
public Poses()
-
-
Method Details
-
addPose
Add aPose
- Returns:
- whether the pose has already been added
-
addPose
Add aPose
- Returns:
- whether the pose has already been added
-
assumePose
Sets the yaw/pitch to the suppliedLocation
. -
assumePose
Sets the yaw/pitch to the stored pose, looked up by name. -
describe
- Throws:
CommandException
-
getPose
-
hasPose
-
load
Description copied from class:Trait
Loads a trait.- Overrides:
load
in classTrait
- Parameters:
key
- DataKey to load from- Throws:
NPCLoadException
- Thrown if this trait failed to load properly
-
removePose
-
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
save
Description copied from class:Trait
Saves a trait. -
setDefaultPose
-