mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 04:59:05 +00:00
Moved model scale parts into a single ModelScale class, similar to ModelRotate.
Added NPC model data interfaces to the API.
This commit is contained in:
1 parent
2ef93dd35f
commit
f0b33cf913
63 files changed
+412
-283
No files matched your search
@@ -6,7 +6,7 @@ package noppes.npcs.entity.old;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import noppes.npcs.ModelData;
|
||||
import noppes.npcs.entity.data.ModelData;
|
||||
import noppes.npcs.entity.EntityCustomNpc;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
@@ -37,10 +37,10 @@ public class EntityNPCElfFemale extends EntityNPCInterface
|
||||
npc.readFromNBT(compound);
|
||||
ModelData data = npc.modelData;
|
||||
data.breasts = 2;
|
||||
data.legs.setScale(0.8f,1.05f);
|
||||
data.arms.setScale(0.8f,1.05f);
|
||||
data.body.setScale(0.8f,1.05f);
|
||||
data.head.setScale(0.8f,0.85f);
|
||||
data.modelScale.legs.setScale(0.8f,1.05f);
|
||||
data.modelScale.arms.setScale(0.8f,1.05f);
|
||||
data.modelScale.body.setScale(0.8f,1.05f);
|
||||
data.modelScale.head.setScale(0.8f,0.85f);
|
||||
worldObj.spawnEntityInWorld(npc);
|
||||
}
|
||||
super.onUpdate();
|
||||
|
||||
Reference in new issue
Block a user