Full Animation File Makeup

> Remove JobPuppet
> Remove PlayerModelData
> REWORK IAnimationPart
and IAnimation
This commit is contained in:
KAMKEEL committed 2023-01-12 03:13:39 -05:00
1 parent 8e3440bc73
commit adb581ea64
6 files changed
+296 -80

No files matched your search

@@ -9,6 +9,9 @@ import noppes.npcs.constants.EnumPacketClient;
import noppes.npcs.roles.PartConfig;
public class PlayerModelData implements IPlayerModelData {
// REMOVE THIS CLASS - LOUIS :D
public PlayerData parent;
public final EntityPlayer player;
@@ -41,27 +44,6 @@ public class PlayerModelData implements IPlayerModelData {
this.player = player;
}
public void updateClient() {
Server.sendToAll(EnumPacketClient.PLAYER_UPDATE_MODEL_DATA, ((PlayerData) parent).player.getCommandSenderName(), this.writeToNBT(new NBTTagCompound()));
}
public IModelPart getPart(int part) {
switch (part) {
case 0:
return this.head;
case 1:
return this.body;
case 2:
return this.larm;
case 3:
return this.rarm;
case 4:
return this.lleg;
case 5:
return this.rleg;
}
return null;
}
public NBTTagCompound writeToNBT(NBTTagCompound compound) {
compound.setTag("PuppetHead", head.writeNBT());