Examples of SlotCustom


Examples of forestry.core.gui.slots.SlotCustom

    this.tile = tile;

    // Input buffer
    for (int i = 0; i < 3; i++)
      for (int k = 0; k < 2; k++)
        addSlot(new SlotCustom(tile, TileAnalyzer.SLOT_INPUT_1 + i * 2 + k, 8 + k * 18, 28 + i * 18, ItemGE.class));

    // 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
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

    this.speciesRoot = speciesRoot;

    // Inventory
    for (int x = 0; x < 5; x++) {
      for (int y = 0; y < 5; y++) {
        addSlot(new SlotCustom(inventory, y + page * pageSize + x * 5, 100 + y * 18, 21 + x * 18, new Object[] { speciesRoot }));
      }
    }

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

Examples of forestry.core.gui.slots.SlotCustom

  public ContainerInfuser(InventoryPlayer inventoryplayer, InfuserInventory inventory) {
    super(inventory);
    this.inventory = inventory;

    // Input
    this.addSlot(new SlotCustom(inventory, 0, 152, 12, ForestryItem.beverage.getItemStack()));

    // Output
    this.addSlot(new SlotCustom(inventory, 1, 152, 72, ItemBeverage.class));

    // Ingredients
    this.addSlot(new Slot(inventory, 2, 12, 12));
    this.addSlot(new Slot(inventory, 3, 12, 32));
    this.addSlot(new Slot(inventory, 4, 12, 52));
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

        addSlot(new SlotOutput(inventory, TileFarmPlain.SLOT_PRODUCTION_1 + 4 + j + i * 2, 164 + j * 18, 86 + i * 18));
      }
    }

    // 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++) {
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

        addSlot(new Slot(inventory, TradeStation.SLOT_EXCHANGE_1 + j + i * 2, 69 + j * 18, 55 + i * 18));

    // Stamps
    for (int i = 0; i < 2; i++)
      for (int j = 0; j < 2; j++)
        addSlot(new SlotCustom(inventory, TradeStation.SLOT_STAMPS_1 + j + i * 2, 15 + j * 18, 37 + i * 18, new Object[] { ItemStamps.class }));

    // Letters
    for (int i = 0; i < 3; i++)
      for (int j = 0; j < 2; j++)
        addSlot(new SlotCustom(inventory, TradeStation.SLOT_LETTERS_1 + j + i * 2, 15 + j * 18, 73 + i * 18, new Object[] { Items.paper }));

    // Buffers
    final int bufCols = 5;
    for (int i = 0; i < 3; i++)
      for (int j = 0; j < bufCols; j++)
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

    this.speciesRoot = speciesRoot;

    // Inventory
    for (int x = 0; x < 5; x++) {
      for (int y = 0; y < 5; y++) {
        addSlot(new SlotCustom(inventory, y + page * pageSize + x * 5, 100 + y * 18, 21 + x * 18, new Object[]{speciesRoot}));
      }
    }

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

Examples of forestry.core.gui.slots.SlotCustom

    Collection<Object> filters = new ArrayList<Object>();
    filters.add(Blocks.sapling);
    filters.addAll(AlleleManager.alleleRegistry.getSpeciesRoot().values());
    // Analyze slot
    addSlot(new SlotCustom(tile, TileEscritoire.SLOT_ANALYZE, 97, 67, filters.toArray()).setCrafter(tile));

    for (int i = 0; i < TileEscritoire.SLOTS_INPUT_COUNT; i++) {
      addSlot(new SlotCustom(tile, TileEscritoire.SLOT_INPUT_1 + i, 17, 49 + i * 18, true).setBlockedTexture("slots/blocked_2"));
    }

    for(int i = 0; i < 3; i++)
      for(int j = 0; j < 2; j++) {
        addSlot(new SlotClosed(tile, TileEscritoire.SLOT_RESULTS_1 + (i*2) + j, 177 + j*18, 85 + i*18));
 
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

  public ContainerSolderingIron(InventoryPlayer inventoryplayer, SolderingInventory inventory) {
    super(inventory, inventoryplayer.player);
    this.inventory = inventory;

    // Input
    this.addSlot(new SlotCustom(inventory, 0, 152, 12, new Object[] { ItemCircuitBoard.class }));

    // Output
    this.addSlot(new SlotCustom(inventory, 1, 152, 92, new Object[] { ItemCircuitBoard.class }));

    // Ingredients
    this.addSlot(new Slot(inventory, 2, 12, 32));
    this.addSlot(new Slot(inventory, 3, 12, 52));
    this.addSlot(new Slot(inventory, 4, 12, 72));
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

    if (letterInventory.getLetter().isProcessed())
      validStamps = new Object[] {};

    // Stamps
    for (int i = 0; i < 4; i++)
      addSlot(new SlotCustom(inventory, Letter.SLOT_POSTAGE_1 + i, 150, 14 + i * 19, validStamps).setStackLimit(1));

    // Attachments
    if (!letterInventory.getLetter().isProcessed())
      for (int i = 0; i < 2; i++)
        for (int j = 0; j < 9; j++)
          addSlot(new SlotCustom(inventory, Letter.SLOT_ATTACHMENT_1 + j + i * 9, 17 + j * 18, 98 + i * 18, true, new Object[] { ItemLetter.class }));
    else
      for (int i = 0; i < 2; i++)
        for (int j = 0; j < 9; j++)
          addSlot(new SlotClosed(inventory, Letter.SLOT_ATTACHMENT_1 + j + i * 9, 17 + j * 18, 98 + i * 18));

 
View Full Code Here

Examples of forestry.core.gui.slots.SlotCustom

    this.inventory = inventory;

    final int xPosLeftSlots = 223;

    // Energy
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_ENERGY, xPosLeftSlots, 8, acceptedEnergy));

    // Bee to analyze
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_SPECIMEN, xPosLeftSlots, 26, acceptedSpecimens));

    // Analyzed bee
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_ANALYZE_1, xPosLeftSlots, 57, acceptedSpecimens));
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_ANALYZE_2, xPosLeftSlots, 75, acceptedSpecimens));
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_ANALYZE_3, xPosLeftSlots, 93, acceptedSpecimens));
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_ANALYZE_4, xPosLeftSlots, 111, acceptedSpecimens));
    this.addSlot(new SlotCustom(inventory, AlyzerInventory.SLOT_ANALYZE_5, xPosLeftSlots, 129, acceptedSpecimens));

    final int xPosPlayerInv = 43;
    final int xSpacePlayerInv = 18;
    final int yPosPlayerInv= 156;
    final int ySpacePlayerInv = 18;
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.