Examples of SlotRestrictedInput


Examples of appeng.container.slot.SlotRestrictedInput

    if ( hasToolbox() )
    {
      for (int v = 0; v < 3; v++)
        for (int u = 0; u < 3; u++)
          addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, tbInventory, u + v * 3, 186 + u * 18, getHeight() - 82 + v * 18,
              invPlayer )).setPlayerSide() );
    }

    setupConfig();

View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

  protected void setupUpgrades()
  {
    IInventory upgrades = upgradeable.getInventoryByName( "upgrades" );
    if ( availableUpgrades() > 0 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 0, 187, 8 + 0, invPlayer )).setNotDraggable() );
    if ( availableUpgrades() > 1 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 1, 187, 8 + 18, invPlayer )).setNotDraggable() );
    if ( availableUpgrades() > 2 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 2, 187, 8 + 18 * 2, invPlayer )).setNotDraggable() );
    if ( availableUpgrades() > 3 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 3, 187, 8 + 18 * 3, invPlayer )).setNotDraggable() );
  }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

    int x = 80 + 44;
    int y = 40;

    IInventory upgrades = upgradeable.getInventoryByName( "upgrades" );
    if ( availableUpgrades() > 0 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 0, 187, 8 + 0, invPlayer )).setNotDraggable() );
    if ( availableUpgrades() > 1 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 1, 187, 8 + 18, invPlayer )).setNotDraggable() );
    if ( availableUpgrades() > 2 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 2, 187, 8 + 18 * 2, invPlayer )).setNotDraggable() );
    if ( availableUpgrades() > 3 )
      addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 3, 187, 8 + 18 * 3, invPlayer )).setNotDraggable() );

    IInventory inv = upgradeable.getInventoryByName( "config" );
    addSlotToContainer( new SlotFakeTypeOnly( inv, 0, x, y ) );
  }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

    IInventory cells = upgradeable.getInventoryByName( "cells" );

    for (int y = 0; y < 3; y++)
      for (int x = 0; x < 2; x++)
        addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.STORAGE_CELLS, cells, x + y * 2, offX + x * 18, offY + y * 18, invPlayer ) );

    offX = 122;
    offY = 17;
    for (int y = 0; y < 3; y++)
      for (int x = 0; x < 2; x++)
        addSlotToContainer( new SlotOutput( cells, 6 + x + y * 2, offX + x * 18, offY + y * 18, SlotRestrictedInput.PlacableItemType.STORAGE_CELLS.IIcon ) );

    IInventory upgrades = upgradeable.getInventoryByName( "upgrades" );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 0, 187, 8 + 0, invPlayer )).setNotDraggable() );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 1, 187, 8 + 18, invPlayer )).setNotDraggable() );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 2, 187, 8 + 18 * 2, invPlayer )).setNotDraggable() );
  }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

  public ContainerChest(InventoryPlayer ip, TileChest chest) {
    super( ip, chest, null );
    this.chest = chest;

    addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.STORAGE_CELLS, this.chest, 1, 80, 37, invPlayer ) );

    bindPlayerInventory( ip, 0, 166 - /* height of player inventory */82 );
  }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

  public ContainerQuartzKnife(InventoryPlayer ip, QuartzKnifeObj te) {
    super( ip, null, null );
    toolInv = te;

    addSlotToContainer( metals = new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.METAL_INGOTS, inSlot, 0, 94, 44, ip ) );
    addSlotToContainer( output = new QuartzKnifeOutput( this, 0, 134, 44, -1 ) );

    lockPlayerInventorySlot( ip.currentItem );

    bindPlayerInventory( ip, 0, 184 - /* height of player inventory */82 );
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

    canAccessViewCells = false;
    if ( monitorable instanceof IViewCellStorage )
    {
      for (int y = 0; y < 5; y++)
      {
        cellView[y] = new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.VIEW_CELL, ((IViewCellStorage) monitorable).getViewCellStorage(), y, 206, y * 18 + 8,
            invPlayer );
        cellView[y].allowEdit = canAccessViewCells;
        addSlotToContainer( cellView[y] );
      }
    }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

    this.spatialIOPort = spatialIOPort;

    if ( Platform.isServer() )
      network = spatialIOPort.getGridNode( ForgeDirection.UNKNOWN ).getGrid();

    addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.SPATIAL_STORAGE_CELLS, spatialIOPort, 0, 52, 48, invPlayer ) );
    addSlotToContainer( new SlotOutput( spatialIOPort, 1, 113, 48, SlotRestrictedInput.PlacableItemType.SPATIAL_STORAGE_CELLS.IIcon ) );

    bindPlayerInventory( ip, 0, 197 - /* height of player inventory */82 );
  }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

    this.drive = drive;

    for (int y = 0; y < 5; y++)
      for (int x = 0; x < 2; x++)
      {
        addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.STORAGE_CELLS, drive, x + y * 2, 71 + x * 18, 14 + y * 18, invPlayer ) );
      }

    bindPlayerInventory( ip, 0, 199 - /* height of player inventory */82 );
  }
View Full Code Here

Examples of appeng.container.slot.SlotRestrictedInput

      }

    offX = 126;
    offY = 16;

    addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.ENCODED_CRAFTING_PATTERN, mac, 10, offX, offY, invPlayer ) );
    addSlotToContainer( new SlotOutput( mac, 9, offX, offY + 32, -1 ) );

    offX = 122;
    offY = 17;

    IInventory upgrades = upgradeable.getInventoryByName( "upgrades" );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 0, 187, 8 + 0, invPlayer ))
        .setNotDraggable() );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 1, 187, 8 + 18, invPlayer ))
        .setNotDraggable() );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 2, 187, 8 + 18 * 2, invPlayer ))
        .setNotDraggable() );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 3, 187, 8 + 18 * 3, invPlayer ))
        .setNotDraggable() );
    addSlotToContainer( (new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.UPGRADES, upgrades, 4, 187, 8 + 18 * 4, invPlayer ))
        .setNotDraggable() );
  }
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.