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

    return device.canCraft(getSlotIndex());
  }
Ejemplo n.º 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;
 }