Package net.minecraft.src

Examples of net.minecraft.src.InventoryPlayer.copyInventory()


      craftableRecipes.clearRecipes();
      recipeList = Collections.unmodifiableList(recipeList);
      InventoryPlayer Temp = new InventoryPlayer( thePlayer );
 
      for(int i = 0; i < Zeldo.ValidOutput.size(); i++) { // Zeldo.ValidOutput.size()
        Temp.copyInventory(thePlayer.inventory);
        //System.out.println("RecipeCheck: " + i + "/" + Zeldo.ValidOutput.size() + " - " + Zeldo.ValidOutput.get(i).ItemID + "@" + Zeldo.ValidOutput.get(i).ItemDamage);
        if ((Boolean)Zeldo.canPlayerCraft(Temp, (ItemDetail)Zeldo.ValidOutput.get(i), theTile, i)[0])
        {
          craftableRecipes.addRecipe(((ItemDetail)Zeldo.ValidOutput.get(i)).iRecipe, i);
        }
View Full Code Here


    {
      mod_CraftingTableIII.getInstance().SendCraftingPacket(irecipe.getRecipeOutput().copy(), false, Internal.xCoord, Internal.yCoord, Internal.zCoord, RecipeIndex);
    }
   
    InventoryPlayer Temp = new InventoryPlayer( thePlayer );
    Temp.copyInventory(thePlayer.inventory);
   
    InventoryPlayer inventoryPlayer = thePlayer.inventory;
    Object[] iTemp = Zeldo.canPlayerCraft(inventoryPlayer, Internal, new ItemDetail(irecipe.getRecipeOutput()), 0, true, null, null, RecipeIndex);
    Internal.theInventory = ((TileEntityCraftingTableII)iTemp[3]).theInventory;
    thePlayer.inventory.copyInventory((InventoryPlayer) iTemp[1]) ;
View Full Code Here

    {
      mod_CraftingTableIII.getInstance().SendCraftingPacket(irecipe.getRecipeOutput().copy(), true, Internal.xCoord, Internal.yCoord, Internal.zCoord, RecipeIndex);
    }
   
    InventoryPlayer Temp = new InventoryPlayer( thePlayer );
    Temp.copyInventory(thePlayer.inventory);
   
    InventoryPlayer inventoryPlayer = thePlayer.inventory;
    int GoTo = 64;
    if (irecipe.getRecipeOutput().getMaxStackSize() > 1) {
      GoTo = irecipe.getRecipeOutput().getMaxStackSize() / irecipe.getRecipeOutput().stackSize ;
View Full Code Here

    if (Level > MaxLevel)
      return new Object[] {false, ThePlayer, SlotCount, Internal};

    //Copys to prevent bugs
    InventoryPlayer ThePlayerBefore = new InventoryPlayer(ThePlayer.player);
    ThePlayerBefore.copyInventory(ThePlayer);
    TileEntityCraftingTableII InternalBefore = ((TileEntityCraftingTableII)Internal).getCopy();
   
    int recipeIndex = ForcedIndex;
   
    if (recipeIndex == -1) {
View Full Code Here

    if (Level > MaxLevel)
      return new Object[] {false, ThePlayer, SlotCount, Internal};

    //Copys to prevent bugs
    InventoryPlayer ThePlayerBefore = new InventoryPlayer(ThePlayer.player);
    ThePlayerBefore.copyInventory(ThePlayer);
    TileEntityCraftingTableII InternalBefore = ((TileEntityCraftingTableII)Internal).getCopy();
   
    int recipeIndex = ForcedIndex;
   
    if (recipeIndex == -1) {
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.