net.minecraft.recipe

public class ServerRecipeManager

implements 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
field_9027
LOGGER
private static final Map<RegistryKey<RecipePropertySet>, ServerRecipeManager$SoleIngredientGetter>
RECIPE_PROPERTY_SETS
field_54897
SOLE_INGREDIENT_GETTERS
private final PreparedRecipes
recipes
field_54638
preparedRecipes
private Map<RegistryKey<RecipePropertySet>, RecipePropertySet>
propertySets
field_54639
propertySets
private CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
stonecutterRecipes
field_54640
stonecutterRecipes
private List<ServerRecipeManager$ServerRecipe>
allDisplays
field_54641
recipes
private Map<RegistryKey<Recipe<?>>, List<ServerRecipeManager$ServerRecipe>>
recipeToDisplay
field_54642
recipesByKey

Constructor summary

ModifierConstructor
public (RegistryView$WrapperLookup registries)

Method summary

Modifier and TypeMethod
public void
finalizeRecipeLoading(FeatureFlagSet enabledFlags)
method_64681(class_7699 arg0)
initialize(FeatureSet features)
private static List<Ingredient>
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)
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)
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)
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)
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)
method_8130(class_5321<class_1860<?>> arg0)
get(RegistryKey<Recipe<?>> key)
private <T extends Recipe<?>> RecipeEntry<T>
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()
method_64692()
getPropertySets()
public CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
getSynchronizedStonecutterRecipes()
method_64694()
getStonecutterRecipeForSync()
public RecipePropertySet
propertySet(ResourceKey<RecipePropertySet> id)
method_64678(class_5321<class_10290> arg0)
getPropertySet(RegistryKey<RecipePropertySet> arg0)
public CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
stonecutterRecipes()
method_64677()
getStonecutterRecipes()
public Collection<RecipeEntry<?>>
getRecipes()
method_8126()
values()
public ServerRecipeManager$ServerRecipe
getRecipeFromDisplay(RecipeDisplayId id)
method_64686(class_10298 arg0)
get(NetworkRecipeId id)
public void
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)
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, RegistryView$WrapperLookup registries)
public static <I extends RecipeInput, T extends Recipe<I>> ServerRecipeManager$MatchGetter<I, T>
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)
method_64688(Iterable<class_8786<?>> arg0, class_7699 arg1)
collectServerRecipes(Iterable<RecipeEntry<?>> recipes, FeatureSet enabledFeatures)
private static ServerRecipeManager$SoleIngredientGetter
forSingleInput(RecipeType<? extends SingleItemRecipe> type)
method_64992(class_3956<? extends class_3972> arg0)
cookingIngredientGetter(RecipeType<? extends SingleStackRecipe> expectedType)
private static Optional
lambda$forSingleInput$0(RecipeType arg0, Recipe arg1)
method_64988(class_3956 arg0, class_1860 arg1)
method_64988(RecipeType arg0, Recipe recipe)
private static int
lambda$unpackRecipeInfo$0(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, Object arg1)
method_64687(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, Object arg1)
method_64687(it.unimi.dsi.fastutil.objects.Object2IntMap arg0, Object group)
private static void
lambda$listDisplaysForRecipe$0(Consumer arg0, RecipeManager$ServerDisplayInfo arg1)
method_64691(Consumer arg0, class_1863$class_10288 arg1)
method_64691(Consumer arg0, ServerRecipeManager$ServerRecipe recipe)
private static boolean
lambda$isIngredientEnabled$0(FeatureFlagSet arg0, Holder arg1)
method_64684(class_7699 arg0, class_6880 arg1)
method_64684(FeatureSet arg0, RegistryEntry entry)
private static boolean
lambda$filterDisabled$0(FeatureFlagSet arg0, Ingredient arg1)
method_64693(class_7699 arg0, class_1856 arg1)
method_64693(FeatureSet arg0, Ingredient ingredient)
private static RegistryKey
lambda$finalizeRecipeLoading$5(RecipeManager$ServerDisplayInfo arg0)
method_64685(class_1863$class_10288 arg0)
method_64685(ServerRecipeManager$ServerRecipe recipe)
private static RecipePropertySet
lambda$finalizeRecipeLoading$4(FeatureFlagSet arg0, RecipeManager$IngredientCollector arg1)
method_64984(class_7699 arg0, class_1863$class_10356 arg1)
method_64984(FeatureSet arg0, ServerRecipeManager$PropertySetBuilder builder)
private static RegistryKey
lambda$finalizeRecipeLoading$3(RecipeManager$IngredientCollector arg0)
method_64987(class_1863$class_10356 arg0)
method_64987(ServerRecipeManager$PropertySetBuilder builder)
private static void
lambda$finalizeRecipeLoading$1(List arg0, FeatureFlagSet arg1, List arg2, RecipeHolder arg3)
method_64989(List arg0, class_7699 arg1, List arg2, class_8786 arg3)
method_64989(List arg0, FeatureSet arg1, List arg2, RecipeEntry recipe)
private static void
lambda$finalizeRecipeLoading$2(Recipe arg0, RecipeManager$IngredientCollector arg1)
method_64986(class_1860 arg0, class_1863$class_10356 arg1)
method_64986(Recipe arg0, ServerRecipeManager$PropertySetBuilder builder)
private static ServerRecipeManager$PropertySetBuilder
lambda$finalizeRecipeLoading$0(Map$Entry arg0)
method_64990(Map$Entry arg0)
method_64990(Map$Entry entry)
private static Optional
lambda$static$4(Recipe arg0)
method_1_7912(class_1860 arg0)
method_1_7912(Recipe arg0)
private static Optional
lambda$static$3(Recipe arg0)
method_1_7911(class_1860 arg0)
method_1_7911(Recipe arg0)
private static Optional
lambda$static$2(Recipe arg0)
method_64985(class_1860 arg0)
method_64985(Recipe recipe)
private static Optional
lambda$static$1(Recipe arg0)
method_64991(class_1860 arg0)
method_64991(Recipe recipe)
private static Optional
lambda$static$0(Recipe arg0)
method_64993(class_1860 arg0)
method_64993(Recipe recipe)