public CraftRecipe getRecipe() { try { return device.getRecipe(getSlotIndex()); } catch (Exception e) { return null; } }
@Override public boolean canTakeStack(EntityPlayer player) { if (player != null && player.capabilities.isCreativeMode && ConfigurationManager.ENABLE_FREECRAFTING) return getHasStack(); return device.canCraft(getSlotIndex()); }
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; }