Big Changes to ModelMPM for 1.8 Layers

> Added all 2D Layers to Models
> Moved Texture Location for PartData to remove texture syncing between MorePlayerModels and CustomNPC.
> Attempted first start at Bodywear 3D model similar to Headwear 3D model.
This commit is contained in:
KAMKEEL committed 2021-05-02 22:53:03 -04:00
1 parent be2f32a97f
commit 8a4be0bc1e
68 files changed
+476 -219

No files matched your search

@@ -29,6 +29,11 @@ public class ModelDataShared{
public byte breasts = 0;
public byte headwear = 2;
public byte bodywear = 0;
public byte armwear = 0;
public byte legwear = 0;
public NBTTagCompound writeToNBT(){
NBTTagCompound compound = new NBTTagCompound();
@@ -44,6 +49,11 @@ public class ModelDataShared{
compound.setTag("LegParts", legParts.writeToNBT());
compound.setByte("Headwear", headwear);
compound.setByte("Bodywear", bodywear);
compound.setByte("Armwear", armwear);
compound.setByte("Legwear", legwear);
compound.setByte("Breasts", breasts);
compound.setTag("ExtraData", extra);
@@ -69,6 +79,11 @@ public class ModelDataShared{
legParts.readFromNBT(compound.getCompoundTag("LegParts"));
headwear = compound.getByte("Headwear");
bodywear = compound.getByte("Bodywear");
armwear = compound.getByte("Armwear");
legwear = compound.getByte("Legwear");
breasts = compound.getByte("Breasts");
extra = compound.getCompoundTag("ExtraData");