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

48 lines
1.4 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
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package noppes.npcs.entity.old;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import noppes.npcs.entity.data.ModelData;
2018-09-13 12:03:28 -04:00
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.EntityNPCInterface;
// Referenced classes of package net.minecraft.src:
// EntityAnimal, Item, EntityPlayer, InventoryPlayer,
// ItemStack, World, NBTTagCompound
public class EntityNPCElfFemale extends EntityNPCInterface
{
public EntityNPCElfFemale(World world)
{
super(world);
display.texture = "customnpcs:textures/entity/elffemale/ElfFemale.png";
scaleX = 0.8f;
scaleY = 1f;
scaleZ = 0.8f;
}
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.breasts = 2;
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);
2018-09-13 12:03:28 -04:00
worldObj.spawnEntityInWorld(npc);
}
super.onUpdate();
}
}