mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 21:09:40 +00:00
Simplified puppet rendering code, iterates over puppet parts and their corresponding model renderers instead of having several if statements.
This commit is contained in:
1 parent
99403257f5
commit
0db7ef8e66
2 files changed
+28
-82
No files matched your search
@@ -21,14 +21,6 @@ public class JobPuppet extends JobInterface{
|
||||
public float animRate = 1.0F;
|
||||
public boolean interpolate = true;
|
||||
|
||||
//Client-sided use
|
||||
public float[] bipedRotsHead = {0,0,0};
|
||||
public float[] bipedRotsBody = {0,0,0};
|
||||
public float[] bipedRotsLeftArm = {0,0,0};
|
||||
public float[] bipedRotsRightArm = {0,0,0};
|
||||
public float[] bipedRotsLeftLeg = {0,0,0};
|
||||
public float[] bipedRotsRightLeg = {0,0,0};
|
||||
|
||||
public JobPuppet(EntityNPCInterface npc) {
|
||||
super(npc);
|
||||
}
|
||||
@@ -105,10 +97,9 @@ public class JobPuppet extends JobInterface{
|
||||
public float pivotZ = 0f;
|
||||
|
||||
//Client-sided use
|
||||
public float prevPivotX = 0f;
|
||||
public float prevPivotY = 0f;
|
||||
public float prevPivotZ = 0f;
|
||||
|
||||
public float[] prevRotations = new float[]{0,0,0};
|
||||
public float[] prevPivots = new float[]{0,0,0};
|
||||
|
||||
public boolean disabled = false;
|
||||
|
||||
public NBTTagCompound writeNBT(){
|
||||
|
||||
Reference in new issue
Block a user