WORKING MODEL CHANGER!

Added Working Model Changer that allows you to change between Default, Steve 64 x 64, Alex Models. Now instead of selecting a completely different Entity, simply go to the Model Editor to change the Model Type and Version.
This commit is contained in:
KAMKEEL committed 2021-04-29 20:13:16 -04:00
1 parent aeb807cea7
commit 97dc3e9f13
12 files changed
+81 -92

No files matched your search

+9 -7
View File
@@ -31,13 +31,13 @@ public class DataDisplay {
public int modelSize = 5;
public int showName = 0;
public int modelType = 0;
public boolean disableLivingAnimation = false;
public byte showBossBar = 0;
public byte squareTexture = 0;
public DataDisplay(EntityNPCInterface npc){
this.npc = npc;
String[] names = { "Noppes", "Noppes", "Noppes", "Noppes", "Atesson",
@@ -73,7 +73,7 @@ public class DataDisplay {
nbttagcompound.setString("CloakTexture", cloakTexture);
nbttagcompound.setString("GlowTexture", glowTexture);
nbttagcompound.setByte("UsingSkinUrl", skinType);
if (this.playerProfile != null)
{
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
@@ -82,13 +82,14 @@ public class DataDisplay {
}
nbttagcompound.setInteger("Size", modelSize);
nbttagcompound.setInteger("modelType", modelType);
nbttagcompound.setInteger("ShowName", showName);
nbttagcompound.setInteger("NpcVisible", visible);
nbttagcompound.setBoolean("NoLivingAnimation", disableLivingAnimation);
nbttagcompound.setByte("BossBar", showBossBar);
nbttagcompound.setByte("SquareTexture", squareTexture);
// nbttagcompound.setByte("SquareTexture", squareTexture);
return nbttagcompound;
}
@@ -117,14 +118,15 @@ public class DataDisplay {
cloakTexture = nbttagcompound.getString("CloakTexture");
glowTexture = nbttagcompound.getString("GlowTexture");
modelSize = ValueUtil.CorrectInt(nbttagcompound.getInteger("Size"), 1, 30);
modelSize = ValueUtil.CorrectInt(nbttagcompound.getInteger("Size"), 1, 40);
modelType = nbttagcompound.getInteger("modelType");
showName = nbttagcompound.getInteger("ShowName");
visible = nbttagcompound.getInteger("NpcVisible");
disableLivingAnimation = nbttagcompound.getBoolean("NoLivingAnimation");
showBossBar = nbttagcompound.getByte("BossBar");
squareTexture = nbttagcompound.getByte("SquareTexture");
// squareTexture = nbttagcompound.getByte("SquareTexture");
if(prevSkinType != skinType || !texture.equals(prevTexture))
npc.textureLocation = null;