Package forestry.core.gui.slots

Examples of forestry.core.gui.slots.SlotLiquidContainer


    // Analyze slot
    addSlot(new SlotCustom(tile, TileAnalyzer.SLOT_ANALYZE, 73, 59, new Object[]{}));

    // Can slot
    addSlot(new SlotLiquidContainer(tile, TileAnalyzer.SLOT_CAN, 143, 24, false, Fluids.HONEY.get()) {

      @Override
      public boolean isItemValid(ItemStack stack) {
        if (ForestryItem.honeyDrop.isItemEqual(stack))
          return true;
View Full Code Here


    }

    // Fertilizer
    addSlot(new SlotCustom(inventory, TileFarmPlain.SLOT_FERTILIZER, 63, 95, PluginFarming.farmFertilizer));
    // Can Slot
    addSlot(new SlotLiquidContainer(inventory, TileFarmPlain.SLOT_CAN, 15, 95));

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

  public ContainerEngineBronze(InventoryPlayer player, EngineBronze engine) {
    super(engine, engine);

    this.engine = engine;
    this.addSlot(new SlotLiquidContainer(engine, EngineBronze.SLOT_CAN, 143, 40));

    int i;
    for (i = 0; i < 3; ++i)
      for (int var4 = 0; var4 < 9; ++var4)
        this.addSlot(new Slot(player, var4 + i * 9 + 9, 8 + var4 * 18, 84 + i * 18));
 
View Full Code Here

  public ContainerGenerator(InventoryPlayer player, MachineGenerator tile) {
    super(tile, tile);

    this.tile = tile;
    this.addSlot(new SlotLiquidContainer(tile, MachineGenerator.SLOT_CAN, 22, 38));

    for (int i = 0; i < 3; ++i)
      for (int var4 = 0; var4 < 9; ++var4)
        this.addSlot(new Slot(player, var4 + i * 9 + 9, 8 + var4 * 18, 84 + i * 18));

 
View Full Code Here

        addSlot(new Slot(internalInventory, MachineCarpenter.SLOT_INVENTORY_1 + k + i * 9, 8 + k * 18, 90 + i * 18));
      }
    }

    // Liquid Input
    this.addSlot(new SlotLiquidContainer(internalInventory, MachineCarpenter.SLOT_CAN_INPUT, 120, 20));
    // Boxes
    this.addSlot(new SlotCrate(this, internalInventory, MachineCarpenter.SLOT_BOX, 83, 20));
    // Product
    this.addSlot(new SlotOutput(internalInventory, MachineCarpenter.SLOT_PRODUCT, 120, 56));

View Full Code Here

  public ContainerStill(InventoryPlayer player, MachineStill tile) {
    super(tile, tile);

    this.processor = tile;
    this.addSlot(new Slot(tile, MachineStill.SLOT_PRODUCT, 150, 54));
    this.addSlot(new SlotLiquidContainer(tile, MachineStill.SLOT_RESOURCE, 150, 18, true));
    this.addSlot(new SlotLiquidContainer(tile, MachineStill.SLOT_CAN, 10, 36));

    for (int i = 0; i < 3; ++i)
      for (int j = 0; j < 9; ++j)
        this.addSlot(new Slot(player, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));

 
View Full Code Here

    // Remnants slot
    this.addSlot(new SlotClosed(tile, 9, 123, 19));

    // Can slot
    this.addSlot(new SlotLiquidContainer(tile, 10, 106, 55, true));
    // Output slot
    this.addSlot(new SlotClosed(tile, 11, 140, 55));

    // Player inventory
    for (int i1 = 0; i1 < 3; i1++)
View Full Code Here

    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)
      for (int var4 = 0; var4 < 9; ++var4)
        this.addSlot(new Slot(player, var4 + i * 9 + 9, 8 + var4 * 18, 84 + i * 18));

 
View Full Code Here

  public ContainerRaintank(InventoryPlayer player, MachineRaintank tile) {
    super(tile, tile);

    this.tile = tile;
    this.addSlot(new SlotLiquidContainer(tile, MachineRaintank.SLOT_RESOURCE, 116, 19, true));
    this.addSlot(new SlotClosed(tile, MachineRaintank.SLOT_PRODUCT, 116, 55));

    for (int i = 0; i < 3; ++i)
      for (int j = 0; j < 9; ++j)
        this.addSlot(new Slot(player, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
 
View Full Code Here

  public ContainerBottler(InventoryPlayer player, MachineBottler tile) {
    super(tile, tile);

    this.tile = tile;
    this.addSlot(new SlotLiquidContainer(tile, MachineBottler.SLOT_RESOURCE, 116, 19, true));
    this.addSlot(new SlotClosed(tile, MachineBottler.SLOT_PRODUCT, 116, 55));
    this.addSlot(new SlotLiquidContainer(tile, MachineBottler.SLOT_CAN, 26, 38));

    int var3;
    for (var3 = 0; var3 < 3; ++var3)
      for (int var4 = 0; var4 < 9; ++var4)
        this.addSlot(new Slot(player, var4 + var3 * 9 + 9, 8 + var4 * 18, 84 + var3 * 18));
 
View Full Code Here

TOP

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

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.