mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 07:55:39 +00:00
Proper Reformating
This commit is contained in:
1 parent
ce75880aba
commit
180d257024
1179 files changed
+59847
-61583
No files matched your search
@@ -15,30 +15,27 @@ import noppes.npcs.entity.data.ModelData;
|
||||
// EntityAnimal, Item, EntityPlayer, InventoryPlayer,
|
||||
// ItemStack, World, NBTTagCompound
|
||||
|
||||
public class EntityNpcSkeleton extends EntityNPCInterface
|
||||
{
|
||||
public EntityNpcSkeleton(World world)
|
||||
{
|
||||
public class EntityNpcSkeleton extends EntityNPCInterface {
|
||||
public EntityNpcSkeleton(World world) {
|
||||
super(world);
|
||||
display.texture = "customnpcs:textures/entity/skeleton/Skeleton.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);
|
||||
ModelData data = npc.modelData;
|
||||
data.setEntityClass(EntitySkeleton.class);
|
||||
writeToNBT(compound);
|
||||
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
|
||||
npc.readFromNBT(compound);
|
||||
ModelData data = npc.modelData;
|
||||
data.setEntityClass(EntitySkeleton.class);
|
||||
|
||||
|
||||
worldObj.spawnEntityInWorld(npc);
|
||||
}
|
||||
worldObj.spawnEntityInWorld(npc);
|
||||
}
|
||||
super.onUpdate();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user