Package net.citizensnpcs.trait
Class Poses
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.Poses
Persists named
Poses.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd aPosebooleanAdd aPosevoidassumePose(String flag) Sets the yaw/pitch to the stored pose, looked up by name.voidassumePose(Location location) Sets the yaw/pitch to the suppliedLocation.voiddescribe(CommandSender sender, int page) booleanvoidLoads a trait.booleanremovePose(String pose) voidrun()Called every tick if overridden.voidSaves a trait.voidsetDefaultPose(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:TraitLoads a trait.- Overrides:
loadin 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:TraitCalled every tick if overridden. -
save
Description copied from class:TraitSaves a trait. -
setDefaultPose
-