Package net.minecraft.item

Examples of net.minecraft.item.ItemStack


        return ConfigBlocks.blockCandle;
    }

    @Override
    public Iterable<ItemStack> getDrops() {
        return Arrays.asList(new ItemStack(getBlock(), 1, meta));
    }
View Full Code Here


  }

  @Override
  public void getSubItems(Item item, CreativeTabs tab, List l) {
    for (PRIMAL_ASPECT_ENUM primal : PRIMAL_ASPECT_ENUM.values()) {
      l.add(new ItemStack(item, 1, primal.ordinal()));
    }
  }
View Full Code Here

    @Override
    public ThaumicTinkererRecipe getRecipeItem() {
        ThaumicTinkererRecipeMulti recipeMulti = new ThaumicTinkererRecipeMulti();
        for (int i = 0; i < NumericAspectHelper.values.size(); i++) {

            ThaumcraftApi.registerObjectTag(new ItemStack(this, 1, i), new int[]{i}, new AspectList().add(NumericAspectHelper.getAspect(i), 8));
            recipeMulti.addRecipe(new ThaumicTinkererCraftingBenchRecipe(LibResearch.KEY_SUMMON + "1", new ItemStack(this, 1, i + 20), "XXX", "XXX", "XXX", 'X', new ItemStack(this, 1, i)));

            ItemStack input = new ItemStack(this, 1, i + 20);
            recipeMulti.addRecipe(new ThaumicTinkererInfusionRecipe(LibResearch.KEY_SUMMON, new ItemStack(this, 1, i + 40), 4,
                    new AspectList().add(getAspect(new ItemStack(this, 1, i)), 10), input,
                    new ItemStack[]{input, input, input, input, input, input, input, input}));

        }
        return recipeMulti;
    }
View Full Code Here

        }
        return NumericAspectHelper.getAspect(item.getItemDamage() % aspectCount);
    }

    public static ItemStack getStackFromAspect(Aspect a) {
        ItemStack result = new ItemStack(ThaumicTinkerer.registry.getFirstItemFromClass(ItemMobAspect.class));
        result.setItemDamage(NumericAspectHelper.getNumber(a));
        return result;
    }
View Full Code Here

        result.setItemDamage(NumericAspectHelper.getNumber(a));
        return result;
    }

    public static ItemStack getInfusedStackFromAspect(Aspect a) {
        ItemStack result = new ItemStack(ThaumicTinkerer.registry.getFirstItemFromClass(ItemMobAspect.class));
        result.setItemDamage(40 + NumericAspectHelper.getNumber(a));
        return result;
    }
View Full Code Here

        par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.3F, 0.1F);
      }
    } else if (getXP(par1ItemStack) >= LibFeatures.XP_TALISMAN_ENCHANTING_BOTTLE_COST) {
      boolean has = par3EntityPlayer.inventory.consumeInventoryItem(Items.glass_bottle);
      if (has) {
        if (!par3EntityPlayer.inventory.addItemStackToInventory(new ItemStack(Items.experience_bottle, 1)) && !par2World.isRemote)
          par3EntityPlayer.dropItem(Items.experience_bottle, 1);
        int xp = getXP(par1ItemStack);
        setXP(par1ItemStack, xp - LibFeatures.XP_TALISMAN_ENCHANTING_BOTTLE_COST);
        par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.1F, (float) (0.1F + Math.random() / 2F));
        for (int i = 0; par2World.isRemote && i < 6; i++)
View Full Code Here

    return true;
  }

  @Override
  public IRegisterableResearch getResearchItem() {
    return (TTResearchItem) new TTResearchItem(LibResearch.KEY_XP_TALISMAN, new AspectList().add(Aspect.GREED, 1).add(Aspect.MAGIC, 1).add(Aspect.MAN, 1), 4, -1, 2, new ItemStack(this, 1, 1)).setParents("JARBRAIN", LibResearch.KEY_SPELL_CLOTH).setConcealed()
        .setPages(new ResearchPage("0"), ResearchHelper.infusionPage(LibResearch.KEY_XP_TALISMAN)).setSecondary();

  }
View Full Code Here

  }

  @Override
  public ThaumicTinkererRecipe getRecipeItem() {
    return new ThaumicTinkererInfusionRecipe(LibResearch.KEY_XP_TALISMAN, new ItemStack(this), 6, new AspectList().add(Aspect.GREED, 20).add(Aspect.EXCHANGE, 10).add(Aspect.BEAST, 10).add(Aspect.MECHANISM, 5), new ItemStack(Items.gold_ingot),
                new ItemStack(Items.quartz), new ItemStack(Items.quartz), new ItemStack(ConfigItems.itemZombieBrain), new ItemStack(Items.diamond));
    }
View Full Code Here

  public IRegisterableResearch getResearchItem() {

    if (!Config.allowMirrors) {
      return null;
    }
        IRegisterableResearch research = (TTResearchItem) new TTResearchItem(LibResearch.KEY_FOCUS_ENDER_CHEST, new AspectList().add(Aspect.ELDRITCH, 2).add(Aspect.VOID, 1).add(Aspect.MAGIC, 1), -6, -2, 2, new ItemStack(this)).setWarp(1).setParents(LibResearch.KEY_FOCUS_DEFLECT).setConcealed();
        if (Loader.isModLoaded("EnderStorage")) {
      ((TTResearchItem) research).setPages(new ResearchPage("ES"), ResearchHelper.arcaneRecipePage(LibResearch.KEY_FOCUS_ENDER_CHEST));
    } else {
      ((TTResearchItem) research).setPages(new ResearchPage("0"), ResearchHelper.arcaneRecipePage(LibResearch.KEY_FOCUS_ENDER_CHEST));
    }
View Full Code Here

  }

  @Override
  public ThaumicTinkererRecipe getRecipeItem() {
    if (Config.allowMirrors) {
      return new ThaumicTinkererArcaneRecipe(LibResearch.KEY_FOCUS_ENDER_CHEST, LibResearch.KEY_FOCUS_ENDER_CHEST, new ItemStack(this), new AspectList().add(Aspect.ORDER, 10).add(Aspect.ENTROPY, 10),
          "M", "E", "P",
          'M', new ItemStack(ConfigBlocks.blockMirror),
          'E', new ItemStack(Items.ender_eye),
          'P', new ItemStack(ConfigItems.itemFocusPortableHole));
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of net.minecraft.item.ItemStack

Copyright © 2018 www.massapicom. 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.