mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 20:17:50 +01:00
Save head pose
This commit is contained in:
parent
b0a4fe8e3d
commit
5fc5f23d8b
@ -16,6 +16,8 @@ public class ArmorStandTrait extends Trait {
|
|||||||
@Persist
|
@Persist
|
||||||
private boolean hasbaseplate = true;
|
private boolean hasbaseplate = true;
|
||||||
@Persist
|
@Persist
|
||||||
|
private EulerAngle head;
|
||||||
|
@Persist
|
||||||
private EulerAngle leftArm;
|
private EulerAngle leftArm;
|
||||||
@Persist
|
@Persist
|
||||||
private EulerAngle leftLeg;
|
private EulerAngle leftLeg;
|
||||||
@ -51,6 +53,9 @@ public class ArmorStandTrait extends Trait {
|
|||||||
if (body != null) {
|
if (body != null) {
|
||||||
entity.setBodyPose(body);
|
entity.setBodyPose(body);
|
||||||
}
|
}
|
||||||
|
if (head != null) {
|
||||||
|
entity.setHeadPose(head);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,6 +68,7 @@ public class ArmorStandTrait extends Trait {
|
|||||||
leftLeg = entity.getLeftLegPose();
|
leftLeg = entity.getLeftLegPose();
|
||||||
rightArm = entity.getRightArmPose();
|
rightArm = entity.getRightArmPose();
|
||||||
rightLeg = entity.getRightLegPose();
|
rightLeg = entity.getRightLegPose();
|
||||||
|
head = entity.getHeadPose();
|
||||||
entity.setVisible(visible);
|
entity.setVisible(visible);
|
||||||
entity.setGravity(gravity);
|
entity.setGravity(gravity);
|
||||||
entity.setArms(hasarms);
|
entity.setArms(hasarms);
|
||||||
|
Loading…
Reference in New Issue
Block a user