Package forestry.core.gui.slots

Examples of forestry.core.gui.slots.SlotLocked


    return inventory;
  }

  protected void addSecuredSlot(IInventory other, int slot, int x, int y) {
    if (other.getStackInSlot(slot) != null && inventory.itemClass.isAssignableFrom(other.getStackInSlot(slot).getItem().getClass()))
      addSlot(new SlotLocked(other, slot, x, y));
    else
      addSlot(new SlotItemInventory(this, other, player, slot, x, y));
  }
View Full Code Here


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

    // CraftResult display
    addSlot(new SlotLocked(craftResult, 0, 80, 51));

    // Crafting matrix
    for (int l = 0; l < 3; l++) {
      for (int k1 = 0; k1 < 3; k1++) {
        addSlot(new SlotCraftMatrix(this, craftingInventory, k1 + l * 3, 10 + k1 * 18, 20 + l * 18));
 
View Full Code Here

TOP

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

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.