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

38 lines
1.2 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
2025-02-10 21:32:55 -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.constants.EnumAnimation;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.EntityNPCInterface;
// Referenced classes of package net.minecraft.src:
2025-02-10 21:32:55 -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 EntityNpcMonsterMale extends EntityNPCInterface {
public EntityNpcMonsterMale(World world) {
2018-09-13 12:03:28 -04:00
super(world);
display.texture = "customnpcs:textures/entity/monstermale/ZombieSteve.png";
}
2025-02-10 21:32:55 -05:00
2025-03-12 20:12:01 -04:00
public void onUpdate() {
isDead = true;
2018-09-13 12:03:28 -04:00
2025-03-12 20:12:01 -04:00
if (!worldObj.isRemote) {
NBTTagCompound compound = new NBTTagCompound();
2025-02-10 21:32:55 -05:00
2025-03-12 20:12:01 -04:00
writeToNBT(compound);
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
npc.readFromNBT(compound);
npc.ais.animationType = EnumAnimation.HUG;
worldObj.spawnEntityInWorld(npc);
}
super.onUpdate();
2018-09-13 12:03:28 -04:00
}
}