Examples of removeTag()


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

    preformattedMode = m;
    writePreformattedMode(m);

    for (int i = 0; i < 63; i++)
    {
      nbt.removeTag("PreformattedFluidName#" + i);
    }

    if (!in.getItems().isEmpty())
    {
      for (int i = 0; i < in.getItems().size(); i++)
View Full Code Here

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

      }
    } else
    {
      for (int i = 0; i < 63; i++)
      {
        nbt.removeTag("PreformattedFluidName#" + i);
      }
    }
    System.out.println("");
  }
View Full Code Here

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

    if (p.isSneaking())
    {
      if (p.username.equals(user))
      {
        tagEncrypted.removeTag("owner");
        itemStackDecrypted.setTagCompound((tagEncrypted));

        p.inventory.setInventorySlotContents(p.inventory.currentItem, itemStackDecrypted);

        if (!w.isRemote)
View Full Code Here

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

    long oldFluidAmount = nbt.getLong("FluidAmount#" + slotID);
    if (oldFluidID > 0 && oldFluidAmount > 0)
    {
      return new FluidStack(oldFluidID, (int) oldFluidAmount);
    }
    nbt.removeTag("FluidID#" + slotID);
    nbt.removeTag("FluidAmount#" + slotID);

    return FluidStack.loadFluidStackFromNBT(nbt.getCompoundTag("Fluid#" + slotID));
  }
View Full Code Here

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

    if (oldFluidID > 0 && oldFluidAmount > 0)
    {
      return new FluidStack(oldFluidID, (int) oldFluidAmount);
    }
    nbt.removeTag("FluidID#" + slotID);
    nbt.removeTag("FluidAmount#" + slotID);

    return FluidStack.loadFluidStackFromNBT(nbt.getCompoundTag("Fluid#" + slotID));
  }

  private void writeNameToNBT(String name)
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()

    {
      return true;
    }
    NBTTagCompound tagA = (NBTTagCompound)a.getTagCompound().copy(),
        tagB = (NBTTagCompound)b.getTagCompound().copy();
    tagA.removeTag("display"); tagB.removeTag("display");
    tagA.removeTag("ench"); tagB.removeTag("ench");
    tagA.removeTag("RepairCost"); tagB.removeTag("RepairCost");
    return tagA.equals(tagB);
  }
 
View Full Code Here

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

      return true;
    }
    NBTTagCompound tagA = (NBTTagCompound)a.getTagCompound().copy(),
        tagB = (NBTTagCompound)b.getTagCompound().copy();
    tagA.removeTag("display"); tagB.removeTag("display");
    tagA.removeTag("ench"); tagB.removeTag("ench");
    tagA.removeTag("RepairCost"); tagB.removeTag("RepairCost");
    return tagA.equals(tagB);
  }
 
  //assumes a 3x3 grid in inventory slots 0-8
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.