Package net.minecraft.src

Examples of net.minecraft.src.InventoryCrafting


  public ContainerClevercraft(EntityPlayer aPlayer, TileEntityCraftingTableII tile)
  {
    worldObj = tile.worldObj;
    theTile = tile;
    thePlayer = aPlayer;
    craftMatrix = new InventoryCrafting(this, 3, 3);
        craftableRecipes = new InventoryCraftingTableII(1000);
        recipeList = Collections.unmodifiableList( CraftingManager.getInstance().getRecipeList() );
   
    for(int l2 = 0; l2 < 5; l2++)
        {
View Full Code Here


      {
        return new Object[] {false, ThePlayerBefore, SlotCount, InternalBefore}; //Look into this effecting player in some recipes
      }
      Internal = (IInventory) iTemp[1];
      if (UpdateWorld){
        InventoryCrafting TempMatrix =GenCraftingMatrix(ContainerClevercraft.getRecipeIngredientsOLD(TheItem.iRecipe));
        TheItem.toItemStack().onCrafting(ThePlayer.player.worldObj, ThePlayer.player, 1);
        ModLoader.takenFromCrafting(ThePlayer.player, TheItem.toItemStack(), TempMatrix);
        ForgeHooks.onTakenFromCrafting(ThePlayer.player, TheItem.toItemStack(), TempMatrix);
        HandleCraftingMaxtrix(TempMatrix, ThePlayer);
      }
View Full Code Here

      }
    }
  }
  public static InventoryCrafting GenCraftingMatrix(ItemStack[] Items)
  {
    InventoryCrafting Temp = new InventoryCrafting(new ContainerNull(), 3, 3);
    for (int i=0; i<Items.length; i++)
    {
      if (Items[i] != null) {
        Items[i].stackSize = 1;
        Temp.setInventorySlotContents(i, Items[i]);
      }
    }
    return Temp;
  }
View Full Code Here

      {
        return new Object[] {false, ThePlayerBefore, SlotCount, InternalBefore}; //Look into this effecting player in some recipes
      }
      Internal = (IInventory) iTemp[1];
      if (UpdateWorld){
        InventoryCrafting TempMatrix =GenCraftingMatrix(ContainerClevercraft.getRecipeIngredientsOLD(TheItem.iRecipe));
        TheItem.toItemStack().onCrafting(ThePlayer.player.worldObj, ThePlayer.player, 1);
        ModLoader.takenFromCrafting(ThePlayer.player, TheItem.toItemStack(), TempMatrix);
        ForgeHooks.onTakenFromCrafting(ThePlayer.player, TheItem.toItemStack(), TempMatrix);
        HandleCraftingMaxtrix(TempMatrix, ThePlayer);
      }
View Full Code Here

      }
    }
  }
  public static InventoryCrafting GenCraftingMatrix(ItemStack[] Items)
  {
    InventoryCrafting Temp = new InventoryCrafting(new ContainerNull(), 3, 3);
    for (int i=0; i<Items.length; i++)
    {
      if (Items[i] != null) {
        Items[i].stackSize = 1;
        Temp.setInventorySlotContents(i, Items[i]);
      }
    }
    return Temp;
  }
View Full Code Here

TOP

Related Classes of net.minecraft.src.InventoryCrafting

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.