Package forestry.core.gui.slots

Examples of forestry.core.gui.slots.SlotCustom


  public ContainerPhilatelist(InventoryPlayer player, MachinePhilatelist tile) {
    super(tile);

    // Filter
    addSlot(new SlotCustom(tile, MachinePhilatelist.SLOT_FILTER, 80, 19, new Object[] { ItemStamps.class }));

    // Collected Stamps
    for (int i = 0; i < 3; i++)
      for (int j = 0; j < 9; j++)
        addSlot(new SlotClosed(tile, j + i * 9 + MachinePhilatelist.SLOT_BUFFER_1, 8 + j * 18, 46 + i * 18));
 
View Full Code Here


  public ContainerImprinter(InventoryPlayer inventoryplayer, ImprinterInventory inventory) {
    super(inventory);

    this.inventory = inventory;
    // Input
    this.addSlot(new SlotCustom(inventory, 0, 152, 12, new Object[] { ItemBeeGE.class }));
    // Output
    this.addSlot(new SlotCustom(inventory, 1, 152, 72, new Object[] { ItemBeeGE.class }));

    // Player inventory
    for (int i1 = 0; i1 < 3; i1++)
      for (int l1 = 0; l1 < 9; l1++)
        addSlot(new Slot(inventoryplayer, l1 + i1 * 9 + 9, 8 + l1 * 18, 103 + i1 * 18));
 
View Full Code Here

    super(tile.getInternalInventory());

    this.tile = tile;
    IInventory inventory = tile.getInternalInventory();

    addSlot(new SlotCustom(inventory, 0, 94, 52, new Object[0]).setCrafter(tile));
    addSlot(new SlotCustom(inventory, 1, 115, 39, new Object[0]).setCrafter(tile));
    addSlot(new SlotCustom(inventory, 2, 73, 39, new Object[0]).setCrafter(tile));
    addSlot(new SlotCustom(inventory, 3, 94, 26, new Object[0]).setCrafter(tile));

    addSlot(new SlotCustom(inventory, TileAlvearySieve.SLOT_SIEVE, 43, 39, ForestryItem.craftingMaterial.getItemStack(1, 3)).setCrafter(tile));

    // Player inventory
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 9; j++) {
        addSlot(new Slot(player, j + i * 9 + 9, 8 + j * 18, 87 + i * 18));
 
View Full Code Here

  public ContainerFermenter(InventoryPlayer player, MachineFermenter fermenter) {
    super(fermenter, fermenter);

    this.fermenter = fermenter;
    this.addSlot(new SlotCustom(fermenter, MachineFermenter.SLOT_RESOURCE, 85, 23, true));
    this.addSlot(new SlotCustom(fermenter, MachineFermenter.SLOT_FUEL, 75, 57, true));
    this.addSlot(new SlotOutput(fermenter, MachineFermenter.SLOT_CAN_OUTPUT, 150, 58));
    this.addSlot(new SlotLiquidContainer(fermenter, MachineFermenter.SLOT_CAN_INPUT, 150, 22, true));
    this.addSlot(new SlotLiquidContainer(fermenter, MachineFermenter.SLOT_INPUT, 10, 40));

    for (int i = 0; i < 3; ++i)
View Full Code Here

    this.tile = tile;
    tile.sendNetworkUpdate();

    // Queen/Princess
    this.addSlot(new SlotCustom(tile, TileAlvearyPlain.SLOT_QUEEN, 29, 39, new Object[] { ForestryItem.beePrincessGE, ForestryItem.beeQueenGE }));

    // Drone
    this.addSlot(new SlotCustom(tile, TileAlvearyPlain.SLOT_DRONE, 29, 65, new Object[] { ForestryItem.beeDroneGE }));

    // Product Inventory
    this.addSlot(new SlotClosed(tile, 2, 116, 52));
    this.addSlot(new SlotClosed(tile, 3, 137, 39));
    this.addSlot(new SlotClosed(tile, 4, 137, 65));
View Full Code Here

    this.tile = tile;
    tile.sendNetworkUpdate();
    IInventory inventory = tile.getInternalInventory();

    // Queen/Princess
    this.addSlot(new SlotCustom(inventory, TileBeehouse.SLOT_QUEEN, 29, 39, ForestryItem.beePrincessGE, ForestryItem.beeQueenGE));

    // Drone
    this.addSlot(new SlotCustom(inventory, TileBeehouse.SLOT_DRONE, 29, 65, ForestryItem.beeDroneGE));

    // Frames
    if (hasFrames) {
      this.addSlot(new SlotCustom(inventory, TileBeehouse.SLOT_FRAMES_1, 66, 23, IHiveFrame.class));
      this.addSlot(new SlotCustom(inventory, TileBeehouse.SLOT_FRAMES_1 + 1, 66, 52, IHiveFrame.class));
      this.addSlot(new SlotCustom(inventory, TileBeehouse.SLOT_FRAMES_1 + 2, 66, 81, IHiveFrame.class));
    }

    // Product Inventory
    this.addSlot(new SlotClosed(inventory, 2, 116, 52));
    this.addSlot(new SlotClosed(inventory, 3, 137, 39));
View Full Code Here

public class ContainerAlvearySwarmer extends ContainerForestry {

  public ContainerAlvearySwarmer(InventoryPlayer player, TileAlvearySwarmer tile) {
    super(tile);

    this.addSlot(new SlotCustom(tile, 0, 79, 52, getInducerItems()));
    this.addSlot(new SlotCustom(tile, 1, 100, 39, getInducerItems()));
    this.addSlot(new SlotCustom(tile, 2, 58, 39, getInducerItems()));
    this.addSlot(new SlotCustom(tile, 3, 79, 26, getInducerItems()));

    // Player inventory
    for (int i = 0; i < 3; i++)
      for (int j = 0; j < 9; j++)
        addSlot(new Slot(player, j + i * 9 + 9, 8 + j * 18, 87 + i * 18));
 
View Full Code Here

    super(inventory, inventoryplayer.player);

    this.inventory = inventory;

    // Energy
    this.addSlot(new SlotCustom(inventory, 2, 152, 8, new Object[] { ForestryItem.honeydew, ForestryItem.honeyDrop }));

    // Bee to analyze
    this.addSlot(new SlotCustom(inventory, 0, 152, 32, new Object[] { ItemBeeGE.class }));
    // Analyzed bee
    this.addSlot(new SlotCustom(inventory, 1, 152, 75, new Object[] { ItemBeeGE.class }));

    // Player inventory
    for (int i1 = 0; i1 < 3; i1++)
      for (int l1 = 0; l1 < 9; l1++)
        addSecuredSlot(inventoryplayer, l1 + i1 * 9 + 9, 8 + l1 * 18, 102 + i1 * 18);
 
View Full Code Here

TOP

Related Classes of forestry.core.gui.slots.SlotCustom

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.