mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 00:22:19 +00:00
Full Animation File Makeup
> Remove JobPuppet > Remove PlayerModelData > REWORK IAnimationPart and IAnimation
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user