Package net.citizensnpcs.trait
Class RotationTrait.RotationParams
java.lang.Object
net.citizensnpcs.trait.RotationTrait.RotationParams
- All Implemented Interfaces:
Cloneable
,Persistable
- Enclosing class:
RotationTrait
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
clone()
headOnly
(boolean headOnly) immediate
(boolean immediate) linkedBody
(boolean linked) void
maxPitchPerTick
(float val) maxYawPerTick
(float val) persist
(boolean persist) pitchRange
(float[] val) float
rotateHeadYawTowards
(int t, float yaw, float targetYaw) float
rotatePitchTowards
(int t, float pitch, float targetPitch) void
uuidFilter
(List<UUID> uuids) uuidFilter
(UUID... uuids) yawRange
(float[] val)
-
Constructor Details
-
RotationParams
public RotationParams()
-
-
Method Details
-
accepts
-
clone
-
filter
-
headOnly
-
immediate
-
linkedBody
-
load
- Specified by:
load
in interfacePersistable
-
maxPitchPerTick
-
maxYawPerTick
-
persist
-
pitchRange
-
rotateHeadYawTowards
public float rotateHeadYawTowards(int t, float yaw, float targetYaw) -
rotatePitchTowards
public float rotatePitchTowards(int t, float pitch, float targetPitch) -
save
- Specified by:
save
in interfacePersistable
-
uuidFilter
-
uuidFilter
-
yawRange
-