use of riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiBipedRotations in project Armourers-Workshop by RiskyKen.
the class GuiMannequinTabRotations method checkAndSendRotationValues.
public void checkAndSendRotationValues() {
BipedPart activePart = bipedRotations.getPartForIndex(activeBipedPart);
activePart.setRotationsDegrees((float) -bipedRotXslider.getValue(), (float) -bipedRotYslider.getValue(), (float) -bipedRotZslider.getValue());
if (!this.bipedRotations.equals(this.lastBipedRotations)) {
NBTTagCompound compound = new NBTTagCompound();
this.bipedRotations.saveNBTData(compound);
this.lastBipedRotations.loadNBTData(compound);
MessageClientGuiBipedRotations message = new MessageClientGuiBipedRotations(bipedRotations);
PacketHandler.networkWrapper.sendToServer(message);
}
}
Aggregations