Package net.minecraft.nbt

Examples of net.minecraft.nbt.NBTTagCompound.removeTag()


    if (nbt.hasKey("x")
        && !(tile instanceof TileBuilder
        || tile instanceof TileArchitect
        || tile instanceof TileConstructionMarker)) {

      nbt.removeTag("x");
      nbt.removeTag("y");
      nbt.removeTag("z");

      return true;
    } else {
View Full Code Here


        && !(tile instanceof TileBuilder
        || tile instanceof TileArchitect
        || tile instanceof TileConstructionMarker)) {

      nbt.removeTag("x");
      nbt.removeTag("y");
      nbt.removeTag("z");

      return true;
    } else {
      return super.onItemUse(marker, player, world, x, y, z, side, par8, par9, par10);
View Full Code Here

        || tile instanceof TileArchitect
        || tile instanceof TileConstructionMarker)) {

      nbt.removeTag("x");
      nbt.removeTag("y");
      nbt.removeTag("z");

      return true;
    } else {
      return super.onItemUse(marker, player, world, x, y, z, side, par8, par9, par10);
    }
View Full Code Here

                        if(villager.getProfession() != Config.villagerMechanicID) {
                            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

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.