net.minecraft.recipe

public class ServerRecipeManager

extends SinglePreparationResourceReloader<PreparedRecipes> implements RecipeManager

All mapped superinterfaces:

ResourceReloader, RecipeManager

net.minecraft.world.item.crafting.RecipeManager
net.minecraft.world.item.crafting.RecipeManager
net.minecraft.class_1863
net.minecraft.recipe.ServerRecipeManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_9027
LOGGER
private static final Map<RegistryKey<RecipePropertySet>, ServerRecipeManager$SoleIngredientGetter>
RECIPE_PROPERTY_SETS
RECIPE_PROPERTY_SETS
field_54897
SOLE_INGREDIENT_GETTERS
private static final ResourceFinder
RECIPE_LISTER
RECIPE_LISTER
field_55213
FINDER
private final RegistryWrapper$WrapperLookup
registries
registries
field_54637
registries
private PreparedRecipes
recipes
recipes
field_54638
preparedRecipes
private Map<RegistryKey<RecipePropertySet>, RecipePropertySet>
propertySets
propertySets
field_54639
propertySets
private CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
stonecutterRecipes
stonecutterRecipes
field_54640
stonecutterRecipes
private List<ServerRecipeManager$ServerRecipe>
allDisplays
allDisplays
field_54641
recipes
private Map<RegistryKey<Recipe<?>>, List<ServerRecipeManager$ServerRecipe>>
recipeToDisplay
recipeToDisplay
field_54642
recipesByKey

Constructor summary

ModifierConstructor
public (RegistryWrapper$WrapperLookup registries)

Method summary

Modifier and TypeMethod
protected PreparedRecipes
prepare(ResourceManager manager, ProfilerFiller profiler)
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
protected void
apply(RecipeMap recipes, ResourceManager manager, ProfilerFiller profiler)
apply(RecipeMap recipes, ResourceManager manager, ProfilerFiller profiler)
method_20705(class_10289 arg0, class_3300 arg1, class_3695 arg2)
apply(PreparedRecipes arg0, ResourceManager arg1, Profiler arg2)
public void
finalizeRecipeLoading(FeatureFlagSet enabledFlags)
finalizeRecipeLoading(FeatureFlagSet enabledFlags)
method_64681(class_7699 arg0)
initialize(FeatureSet features)
private static List<Ingredient>
filterDisabled(FeatureFlagSet enabledFlags, List<Ingredient> ingredients)
filterDisabled(FeatureFlagSet enabledFlags, List<Ingredient> ingredients)
method_64683(class_7699 arg0, List<class_1856> arg1)
filterIngredients(FeatureSet features, List<Ingredient> ingredients)
private static boolean
isIngredientEnabled(FeatureFlagSet enabledFlags, Ingredient ingredient)
isIngredientEnabled(FeatureFlagSet enabledFlags, Ingredient ingredient)
method_64682(class_7699 arg0, class_1856 arg1)
isEnabled(FeatureSet features, Ingredient ingredient)
public <I extends RecipeInput, T extends Recipe<I>> Optional<RecipeEntry<T>>
getRecipeFor(RecipeType<T> type, I input, Level level, ResourceKey<Recipe<?>> recipeHint)
getRecipeFor(RecipeType<T> type, I input, Level level, ResourceKey<Recipe<?>> recipeHint)
method_42299(class_3956<T> arg0, I arg1, class_1937 arg2, class_5321<class_1860<?>> arg3)
getFirstMatch(RecipeType<T> type, I input, World world, RegistryKey<Recipe<?>> recipe)
public <I extends RecipeInput, T extends Recipe<I>> Optional<RecipeEntry<T>>
getRecipeFor(RecipeType<T> type, I input, Level level, RecipeHolder<T> recipeHint)
getRecipeFor(RecipeType<T> type, I input, Level level, RecipeHolder<T> recipeHint)
method_59993(class_3956<T> arg0, I arg1, class_1937 arg2, class_8786<T> arg3)
getFirstMatch(RecipeType<T> type, I input, World world, RecipeEntry<T> recipe)
public <I extends RecipeInput, T extends Recipe<I>> Optional<RecipeEntry<T>>
getRecipeFor(RecipeType<T> type, I input, Level level)
getRecipeFor(RecipeType<T> type, I input, Level level)
method_8132(class_3956<T> arg0, I arg1, class_1937 arg2)
getFirstMatch(RecipeType<T> type, I input, World world)
public Optional<RecipeEntry<?>>
byKey(ResourceKey<Recipe<?>> recipeId)
byKey(ResourceKey<Recipe<?>> recipeId)
method_8130(class_5321<class_1860<?>> arg0)
get(RegistryKey<Recipe<?>> key)
private <T extends Recipe<?>> RecipeEntry<T>
byKeyTyped(RecipeType<T> type, ResourceKey<Recipe<?>> recipeId)
byKeyTyped(RecipeType<T> type, ResourceKey<Recipe<?>> recipeId)
method_59821(class_3956<T> arg0, class_5321<class_1860<?>> arg1)
get(RecipeType<T> type, RegistryKey<Recipe<?>> key)
public Map<RegistryKey<RecipePropertySet>, RecipePropertySet>
getSynchronizedItemProperties()
getSynchronizedItemProperties()
method_64692()
getPropertySets()
public CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
getSynchronizedStonecutterRecipes()
getSynchronizedStonecutterRecipes()
method_64694()
getStonecutterRecipeForSync()
public RecipePropertySet
propertySet(ResourceKey<RecipePropertySet> id)
propertySet(ResourceKey<RecipePropertySet> id)
method_64678(class_5321<class_10290> arg0)
getPropertySet(RegistryKey<RecipePropertySet> arg0)
public CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
stonecutterRecipes()
stonecutterRecipes()
method_64677()
getStonecutterRecipes()
public Collection<RecipeEntry<?>>
getRecipes()
getRecipes()
method_8126()
values()
public ServerRecipeManager$ServerRecipe
getRecipeFromDisplay(RecipeDisplayId id)
getRecipeFromDisplay(RecipeDisplayId id)
method_64686(class_10298 arg0)
get(NetworkRecipeId id)
public void
listDisplaysForRecipe(ResourceKey<Recipe<?>> id, Consumer<RecipeDisplayEntry> output)
listDisplaysForRecipe(ResourceKey<Recipe<?>> id, Consumer<RecipeDisplayEntry> output)
method_64679(class_5321<class_1860<?>> arg0, Consumer<class_10297> arg1)
forEachRecipeDisplay(RegistryKey<Recipe<?>> key, Consumer<RecipeDisplayEntry> action)
protected static RecipeEntry<?>
fromJson(ResourceKey<Recipe<?>> id, com.google.gson.JsonObject object, HolderLookup$Provider registries)
fromJson(ResourceKey<Recipe<?>> id, com.google.gson.JsonObject object, HolderLookup$Provider registries)
method_17720(class_5321<class_1860<?>> arg0, com.google.gson.JsonObject arg1, class_7225$class_7874 arg2)
deserialize(RegistryKey<Recipe<?>> key, com.google.gson.JsonObject json, RegistryWrapper$WrapperLookup registries)
public static <I extends RecipeInput, T extends Recipe<I>> ServerRecipeManager$MatchGetter<I, T>
createCheck(RecipeType<T> type)
createCheck(RecipeType<T> type)
method_42302(class_3956<T> arg0)
createCachedMatchGetter(RecipeType<T> type)
private static List<ServerRecipeManager$ServerRecipe>
unpackRecipeInfo(Iterable<RecipeHolder<?>> recipes, FeatureFlagSet enabledFeatures)
unpackRecipeInfo(Iterable<RecipeHolder<?>> recipes, FeatureFlagSet enabledFeatures)
method_64688(Iterable<class_8786<?>> arg0, class_7699 arg1)
collectServerRecipes(Iterable<RecipeEntry<?>> recipes, FeatureSet enabledFeatures)
private static ServerRecipeManager$SoleIngredientGetter
forSingleInput(RecipeType<? extends SingleItemRecipe> type)
forSingleInput(RecipeType<? extends SingleItemRecipe> type)
method_64992(class_3956<? extends class_3972> arg0)
cookingIngredientGetter(RecipeType<? extends SingleStackRecipe> expectedType)