mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 08:49:41 +00:00
Animation overhaul, along with animation changes to the API.
This commit is contained in:
1 parent
bda76bafe6
commit
be18e756fc
23 files changed
+648
-1229
No files matched your search
@@ -12,7 +12,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.Util;
|
||||
import net.minecraft.world.World;
|
||||
import noppes.npcs.AnimationDataShared;
|
||||
import noppes.npcs.AnimationData;
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.Server;
|
||||
import noppes.npcs.client.fx.CustomFX;
|
||||
@@ -88,19 +88,6 @@ public class NoppesUtil {
|
||||
Client.skinOverlays.put(player.getUniqueID(), skinOverlays);
|
||||
}
|
||||
|
||||
public static void updatePlayerModelData(EntityPlayer player, NBTTagCompound compound) {
|
||||
AnimationDataShared data;
|
||||
if (!Client.playerModelData.containsKey(player.getUniqueID())) {
|
||||
data = new AnimationDataShared(null);
|
||||
data.readFromNBT(compound);
|
||||
data.modelRotations = new float[]{data.rotationX, data.rotationY, data.rotationZ};
|
||||
} else {
|
||||
data = Client.playerModelData.get(player.getUniqueID());
|
||||
data.readFromNBT(compound);
|
||||
}
|
||||
Client.playerModelData.put(player.getUniqueID(), data);
|
||||
}
|
||||
|
||||
public static void spawnScriptedParticle(EntityPlayer player, ByteBuf buffer){
|
||||
Minecraft minecraft = Minecraft.getMinecraft();
|
||||
|
||||
|
||||
Reference in new issue
Block a user