Examples of CraftItemStack


Examples of org.bukkit.craftbukkit.v1_7_R1.inventory.CraftItemStack

    NBTTagList itemList = new NBTTagList();

    // Save every element in the list
    for (int i = 0; i < inventory.getSize(); i++) {
      NBTTagCompound outputObject = new NBTTagCompound();
      CraftItemStack craft = getCraftVersion(inventory.getItem(i));

      // Convert the item stack to a NBT compound
      if (craft != null)
        CraftItemStack.asNMSCopy(craft).save(outputObject);
      itemList.add(outputObject);
View Full Code Here

Examples of org.spoutcraft.client.inventory.CraftItemStack

        this.func_135015_g();
      }
     
      if (par3ItemStack != null && par3ItemStack.itemID == 318) {
        String custom, customName;
        custom = Spoutcraft.getMaterialManager().getToolTip(new CraftItemStack(par3ItemStack));       
        if (custom != null) {
          String[] split = custom.split("\n");
          customName = split[0];
          this.itemNameField.setText(customName);
        } else {
View Full Code Here

Examples of org.spoutcraft.client.inventory.CraftItemStack

    GL11.glDisable(GL12.GL_RESCALE_NORMAL);
    RenderHelper.disableStandardItemLighting();
    GL11.glDisable(GL11.GL_LIGHTING);
    GL11.glDisable(GL11.GL_DEPTH_TEST);
    // Spout Start
    List var4 = Arrays.asList(Spoutcraft.getMaterialManager().getToolTip(new CraftItemStack(par1ItemStack)).split("\n"));
    // Spout End

    if (!var4.isEmpty()) {
      int var5 = 0;
      int var7;
View Full Code Here

Examples of org.spoutcraft.client.inventory.CraftItemStack

      var38 = (screenWidth - font.getStringWidth(var34)) / 2;
      this.mc.mcProfiler.startSection("toolHighlight");

      if (this.remainingHighlightTicks > 0 && this.highlightingItemStack != null) {
        if (this.highlightingItemStack.itemID == MaterialData.flint.getRawId()) {
          custom = Spoutcraft.getMaterialManager().getToolTip(new CraftItemStack(this.highlightingItemStack));
        }
        if (custom != null) {
          String[] split = custom.split("\n");
          String newCustom = split[0];
          var35 = newCustom;
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.