Exemple #1
0
 public CraftRecipe getRecipe() {
   try {
     return device.getRecipe(getSlotIndex());
   } catch (Exception e) {
     return null;
   }
 }
Exemple #2
0
  @Override
  public boolean canTakeStack(EntityPlayer player) {
    if (player != null
        && player.capabilities.isCreativeMode
        && ConfigurationManager.ENABLE_FREECRAFTING) return getHasStack();

    return device.canCraft(getSlotIndex());
  }
Exemple #3
0
 public SlotCraft(
     ICraftingDevice device,
     InventoryCrafting invCrafting,
     IInventory displayInventory,
     EntityPlayer player,
     int index,
     int x,
     int y) {
   super(player, invCrafting, displayInventory, index, x, y);
   this.player = player;
   this.device = device;
   this.handler = device.getHandler();
   this.matrix = displayInventory;
 }