Added grinder and inscriber recipes. Improved JEI integration.

This commit is contained in:
Sebastian Hartte
2020-06-11 00:40:14 +02:00
parent 8ccc114f92
commit ecbcc56997
45 changed files with 614 additions and 1318 deletions
@@ -19,6 +19,7 @@
package appeng.container.slot;
import appeng.recipes.handlers.GrinderRecipes;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.inventory.container.Slot;
@@ -192,7 +193,7 @@ public class SlotRestrictedInput extends AppEngSlot
case VIEW_CELL:
return items.viewCell().isSameAs( i );
case ORE:
return AEApi.instance().registries().grinder().getRecipeForInput( i ) != null;
return GrinderRecipes.isValidIngredient(p.player.world, i);
case FUEL:
return ForgeHooks.getBurnTime( i ) > 0;
case POWERED_TOOL: