Class LodestoneRecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
team.lodestar.lodestone.systems.recipe.LodestoneRecipeType<T>
All Implemented Interfaces:
net.minecraft.world.item.crafting.RecipeType<T>

public class LodestoneRecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>> extends Object implements net.minecraft.world.item.crafting.RecipeType<T>
A Basic implementation for a custom recipe type along with some static helper functions for fetching recipes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.resources.ResourceLocation
     

    Fields inherited from interface net.minecraft.world.item.crafting.RecipeType

    BLASTING, CAMPFIRE_COOKING, CRAFTING, SMELTING, SMITHING, SMOKING, STONECUTTING
  • Constructor Summary

    Constructors
    Constructor
    Description
    LodestoneRecipeType(net.minecraft.resources.ResourceLocation id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>>
    K
    findRecipe(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType, Predicate<K> predicate)
     
    static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>>
    K
    getRecipe(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType, T recipeInput)
     
    static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>>
    List<net.minecraft.world.item.crafting.RecipeHolder<K>>
    getRecipeHolders(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType)
     
    static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>>
    List<K>
    getRecipes(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public final net.minecraft.resources.ResourceLocation id
  • Constructor Details

    • LodestoneRecipeType

      public LodestoneRecipeType(net.minecraft.resources.ResourceLocation id)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRecipe

      public static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>> K getRecipe(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType, T recipeInput)
    • findRecipe

      public static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>> K findRecipe(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType, Predicate<K> predicate)
    • getRecipes

      public static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>> List<K> getRecipes(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType)
    • getRecipeHolders

      public static <T extends net.minecraft.world.item.crafting.RecipeInput, K extends net.minecraft.world.item.crafting.Recipe<T>> List<net.minecraft.world.item.crafting.RecipeHolder<K>> getRecipeHolders(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeType<K> recipeType)