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
FieldsFields inherited from interface net.minecraft.world.item.crafting.RecipeType
BLASTING, CAMPFIRE_COOKING, CRAFTING, SMELTING, SMITHING, SMOKING, STONECUTTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.item.crafting.RecipeInput,K extends net.minecraft.world.item.crafting.Recipe<T>>
KfindRecipe(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>>
KgetRecipe(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) toString()
-
Field Details
-
id
public final net.minecraft.resources.ResourceLocation id
-
-
Constructor Details
-
LodestoneRecipeType
public LodestoneRecipeType(net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
toString
-
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)
-