Files
CustomNPC-Plus/src/main/java/noppes/npcs/entity/old/EntityNpcEnderchibi.java
T

45 lines
1.5 KiB
Java
Raw Normal View History

2018-09-13 12:03:28 -04:00
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
2024-02-15 17:54:28 -05:00
// Decompiler options: packimports(3) braces deadcode fieldsfirst
2018-09-13 12:03:28 -04:00
package noppes.npcs.entity.old;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.EntityNPCInterface;
2024-02-15 17:54:28 -05:00
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
2018-09-13 12:03:28 -04:00
// Referenced classes of package net.minecraft.src:
2024-02-15 17:54:28 -05:00
// EntityAnimal, Item, EntityPlayer, InventoryPlayer,
2018-09-13 12:03:28 -04:00
// ItemStack, World, NBTTagCompound
2025-03-12 20:12:01 -04:00
public class EntityNpcEnderchibi extends EntityNPCInterface {
public EntityNpcEnderchibi(World world) {
2018-09-13 12:03:28 -04:00
super(world);
display.texture = "customnpcs:textures/entity/enderchibi/MrEnderchibi.png";
}
2025-03-12 20:12:01 -04:00
2018-09-13 12:03:28 -04:00
@Override
2025-03-12 20:12:01 -04:00
public void onUpdate() {
isDead = true;
if (!worldObj.isRemote) {
NBTTagCompound compound = new NBTTagCompound();
writeToNBT(compound);
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
npc.readFromNBT(compound);
ModelData data = npc.modelData;
data.modelScale.legs.setScale(0.65f, 0.75f);
data.modelScale.arms.setScale(0.50f, 1.45f);
ModelPartData part = data.getOrCreatePart("particles");
part.playerTexture = true;
worldObj.spawnEntityInWorld(npc);
}
2018-09-13 12:03:28 -04:00
super.onUpdate();
}
}