mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 13:52:23 +00:00
49 lines
1.5 KiB
Java
49 lines
1.5 KiB
Java
// 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.ModelData;
|
|
import noppes.npcs.constants.EnumAnimation;
|
|
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 EntityNpcMonsterFemale extends EntityNPCInterface
|
|
{
|
|
public EntityNpcMonsterFemale(World world)
|
|
{
|
|
super(world);
|
|
scaleX = scaleY = scaleZ = 0.9075f;
|
|
display.texture = "customnpcs:textures/entity/monsterfemale/ZombieStephanie.png";
|
|
}
|
|
|
|
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.head.setScale(0.95f,0.95f);
|
|
data.legs.setScale(0.92f,0.92f);
|
|
data.arms.setScale(0.80f,0.92f);
|
|
data.body.setScale(0.92f, 0.92f);
|
|
npc.ai.animationType = EnumAnimation.HUG;
|
|
worldObj.spawnEntityInWorld(npc);
|
|
}
|
|
super.onUpdate();
|
|
}
|
|
|
|
}
|