Examples of removeTag()


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

    if (stackToDisenchant == null)
      return null;

    NBTTagCompound cmp = (NBTTagCompound) stackToDisenchant.getTagCompound().copy();
    cmp.removeTag("ench"); // Remove enchantments
    stackToDisenchant.setTagCompound(cmp);

    return stackToDisenchant;
  }
View Full Code Here

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

        if (createdEntity != null) {
            CompoundTag nativeTag = entity.getNbtData();
            if (nativeTag != null) {
                NBTTagCompound tag = NBTConverter.toNative(entity.getNbtData());
                for (String name : Constants.NO_COPY_ENTITY_NBT_FIELDS) {
                    tag.removeTag(name);
                }
                createdEntity.readFromNBT(tag);
            }

            createdEntity.setLocationAndAngles(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
View Full Code Here

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

          if (nbt.hasKey(NBT_POINT_1) && nbt.hasKey(NBT_POINT_2) && !point1.equals(point2))
          {
            if (point1.distance(point2) < Settings.MAX_FORCE_FIELD_SCALE)
            {
              // Clear NBT Data
              nbt.removeTag(NBT_POINT_1);
              nbt.removeTag(NBT_POINT_2);

              Vector3 midPoint = new Vector3();
              midPoint.x = (point1.x + point2.x) / 2;
              midPoint.y = (point1.y + point2.y) / 2;
View Full Code Here

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

          {
            if (point1.distance(point2) < Settings.MAX_FORCE_FIELD_SCALE)
            {
              // Clear NBT Data
              nbt.removeTag(NBT_POINT_1);
              nbt.removeTag(NBT_POINT_2);

              Vector3 midPoint = new Vector3();
              midPoint.x = (point1.x + point2.x) / 2;
              midPoint.y = (point1.y + point2.y) / 2;
              midPoint.z = (point1.z + point2.z) / 2;
View Full Code Here

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

        {
          if (player.isSneaking())
          {
            NBTTagCompound nbt = new NBTTagCompound();
            blockTE.writeToNBT(nbt);
            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
View Full Code Here

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

          if (player.isSneaking())
          {
            NBTTagCompound nbt = new NBTTagCompound();
            blockTE.writeToNBT(nbt);
            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
View Full Code Here

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

          {
            NBTTagCompound nbt = new NBTTagCompound();
            blockTE.writeToNBT(nbt);
            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
          } else if (card.getSettingsName(currentItem).equals(getUnlocalizedName() + ".name") || card.getSettingsName(currentItem).equals("AppEng.GuiITooltip.Blank"))
View Full Code Here

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

        {
          if (player.isSneaking())
          {
            NBTTagCompound nbt = new NBTTagCompound();
            blockTE.writeToNBT(nbt);
            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
View Full Code Here

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

          if (player.isSneaking())
          {
            NBTTagCompound nbt = new NBTTagCompound();
            blockTE.writeToNBT(nbt);
            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
View Full Code Here

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

          {
            NBTTagCompound nbt = new NBTTagCompound();
            blockTE.writeToNBT(nbt);
            nbt.removeTag("x");
            nbt.removeTag("y");
            nbt.removeTag("z");
            blockTE.readFromNBT(nbt);
            card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
            player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
            return true;
          } else if (card.getSettingsName(currentItem).equals(getUnlocalizedName() + ".name") || card.getSettingsName(currentItem).equals("AppEng.GuiITooltip.Blank"))
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.