Class RecipeRegistryJeiRecipeWrapper<C extends net.minecraft.world.Container,R extends net.minecraft.world.item.crafting.Recipe<C>,J extends RecipeRegistryJeiRecipeWrapper<C,R,J>>

java.lang.Object
org.cyclops.cyclopscore.modcompat.jei.RecipeRegistryJeiRecipeWrapper<C,R,J>
Type Parameters:
C - The type of the recipe container.
R - The type of the recipe instance.

public abstract class RecipeRegistryJeiRecipeWrapper<C extends net.minecraft.world.Container,R extends net.minecraft.world.item.crafting.Recipe<C>,J extends RecipeRegistryJeiRecipeWrapper<C,R,J>> extends Object
A base implementation of a recipe-based JEI recipe wrapper. This caches all created recipe wrappers so they can be reused (or removed).
  • Field Details

    • recipe

      protected final R extends net.minecraft.world.item.crafting.Recipe<C> recipe
  • Constructor Details

    • RecipeRegistryJeiRecipeWrapper

      protected RecipeRegistryJeiRecipeWrapper(net.minecraft.world.item.crafting.RecipeType<R> recipeType, R recipe)
  • Method Details

    • getRecipe

      public R getRecipe()
    • getRecipeType

      protected abstract net.minecraft.world.item.crafting.RecipeType<R> getRecipeType()
    • newInstance

      protected abstract J newInstance(R input)
    • getJeiRecipeWrapper

      public static <T extends net.minecraft.world.item.crafting.RecipeType<R>, C extends net.minecraft.world.Container, R extends net.minecraft.world.item.crafting.Recipe<C>, J extends RecipeRegistryJeiRecipeWrapper<C, R, J>> T getJeiRecipeWrapper(R input)
    • createAllRecipes

      public Collection<J> createAllRecipes()