Examples of readEntityFromNBT()


Examples of net.minecraft.entity.EntityLiving.readEntityFromNBT()

      EntityLiving spawnedLiving = (EntityLiving)spawnedEntity;
     
      if(_spawnExact)
      {
        NBTTagCompound tag = (NBTTagCompound)itemTag.copy();
        spawnedLiving.readEntityFromNBT(tag);
        for (int i = 0; i < 5; ++i)
        {
          spawnedLiving.func_96120_a(i, 0);
        }
      }
View Full Code Here

Examples of net.minecraft.entity.passive.EntityVillager.readEntityFromNBT()

                            villager.setProfession(Config.villagerMechanicID);
                            NBTTagCompound tag = new NBTTagCompound();
                            villager.writeEntityToNBT(tag);
                            if(tag.hasKey("Offers")) {//reset the trade list
                                tag.removeTag("Offers");
                                villager.readEntityFromNBT(tag);
                            }
                        }
                    }
                    entity.attackEntityFrom(DamageSourcePneumaticCraft.pressure, (int)(getPressure(ForgeDirection.UNKNOWN) * 2D));
                }
View Full Code Here

Examples of pneumaticCraft.common.entity.living.EntityDrone.readEntityFromNBT()

                entityTag.setTag("widgets", stackTag.getTagList("widgets", 10).copy());
                entityTag.setFloat("currentAir", stackTag.getFloat("currentAir"));
                NBTTagCompound invTag = stackTag.getCompoundTag("Inventory");
                if(invTag != null) entityTag.setTag("Inventory", invTag.copy());
            }
            drone.readEntityFromNBT(entityTag);
            if(iStack.hasDisplayName()) drone.setCustomNameTag(iStack.getDisplayName());

            drone.naturallySpawned = false;
            drone.onSpawnWithEgg(null);
            iStack.stackSize--;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.