mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 23:39:50 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -14,27 +14,25 @@ import noppes.npcs.entity.EntityNPCInterface;
|
||||
// EntityAnimal, Item, EntityPlayer, InventoryPlayer,
|
||||
// ItemStack, World, NBTTagCompound
|
||||
|
||||
public class EntityNpcMonsterMale extends EntityNPCInterface
|
||||
{
|
||||
public EntityNpcMonsterMale(World world)
|
||||
{
|
||||
public class EntityNpcMonsterMale extends EntityNPCInterface {
|
||||
public EntityNpcMonsterMale(World world) {
|
||||
super(world);
|
||||
display.texture = "customnpcs:textures/entity/monstermale/ZombieSteve.png";
|
||||
}
|
||||
|
||||
public void onUpdate(){
|
||||
isDead = true;
|
||||
public void onUpdate() {
|
||||
isDead = true;
|
||||
|
||||
if(!worldObj.isRemote){
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
if (!worldObj.isRemote) {
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
|
||||
writeToNBT(compound);
|
||||
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
|
||||
npc.readFromNBT(compound);
|
||||
npc.ais.animationType = EnumAnimation.HUG;
|
||||
worldObj.spawnEntityInWorld(npc);
|
||||
}
|
||||
super.onUpdate();
|
||||
writeToNBT(compound);
|
||||
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
|
||||
npc.readFromNBT(compound);
|
||||
npc.ais.animationType = EnumAnimation.HUG;
|
||||
worldObj.spawnEntityInWorld(npc);
|
||||
}
|
||||
super.onUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user