Package appeng.container

Examples of appeng.container.ContainerNull


          updateHeld( (EntityPlayerMP) p );
        detectAndSendChanges();
        return;
      }

      InventoryCrafting ic = new InventoryCrafting( new ContainerNull(), 3, 3 );
      InventoryCrafting real = new InventoryCrafting( new ContainerNull(), 3, 3 );
      for (int x = 0; x < 9; x++)
      {
        ic.setInventorySlotContents( x, packetPatternSlot.pattern[x] == null ? null : packetPatternSlot.pattern[x].getItemStack() );
      }
View Full Code Here


    if ( details.isCraftable() )
    {
      IAEItemStack list[] = details.getInputs();

      InventoryCrafting ic = new InventoryCrafting( new ContainerNull(), 3, 3 );
      IAEItemStack[] is = details.getInputs();
      for (int x = 0; x < ic.getSizeInventory(); x++)
        ic.setInventorySlotContents( x, is[x] == null ? null : is[x].getItemStack() );

      FMLCommonHandler.instance().firePlayerCraftingEvent( Platform.getPlayer( (WorldServer) world ), details.getOutput( ic, world ), ic );
View Full Code Here

  {
    job.handlePausing();

    if ( fullSimulation )
    {
      InventoryCrafting ic = new InventoryCrafting( new ContainerNull(), 3, 3 );

      for (Entry<CraftingTreeNode, Long> entry : nodes.entrySet())
      {
        IAEItemStack item = entry.getKey().getStack( entry.getValue() );
        IAEItemStack stack = entry.getKey().request( inv, item.getStackSize(), src );
View Full Code Here

   * Callback for when the crafting matrix is changed.
   */
  @Override
  public void onCraftMatrixChanged(IInventory par1IInventory)
  {
    ContainerNull cn = new ContainerNull();
    InventoryCrafting ic = new InventoryCrafting( cn, 3, 3 );

    for (int x = 0; x < 9; x++)
      ic.setInventorySlotContents( x, craftingSlots[x].getStack() );

View Full Code Here

      ItemStack[] set = new ItemStack[pattern.getSizeInventory()];

      // add one of each item to the items on the board...
      if ( Platform.isServer() )
      {
        InventoryCrafting ic = new InventoryCrafting( new ContainerNull(), 3, 3 );
        for ( int x = 0; x < 9; x++ )
          ic.setInventorySlotContents( x, pattern.getStackInSlot( x ) );

        IRecipe r = Platform.findMatchingRecipe( ic, p.worldObj );
View Full Code Here

              // power...
              if ( eg.extractAEPower( sum, Actionable.MODULATE, PowerMultiplier.CONFIG ) < sum - 0.01 )
                continue;

              ic = new InventoryCrafting( new ContainerNull(), 3, 3 );
              boolean found = false;

              for (int x = 0; x < input.length; x++)
              {
View Full Code Here

        Actionable realForFake = cct.useRealItems() ? Actionable.MODULATE : Actionable.SIMULATE;

        if ( inv != null && recipe != null && security != null )
        {
          InventoryCrafting ic = new InventoryCrafting( new ContainerNull(), 3, 3 );
          for (int x = 0; x < 9; x++)
          {
            if ( recipe[x] != null && recipe[x].length > 0 )
            {
              ic.setInventorySlotContents( x, recipe[x][0] );
View Full Code Here

TOP

Related Classes of appeng.container.ContainerNull

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.