Package net.minecraft.stats
Class ServerRecipeBook
java.lang.Object
net.minecraft.stats.RecipeBook
net.minecraft.stats.ServerRecipeBook
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerRecipeBook.DisplayResolverprotected final Set<ResourceKey<Recipe<?>>> protected final Set<ResourceKey<Recipe<?>>> private static final org.slf4j.Loggerstatic final StringFields inherited from class net.minecraft.stats.RecipeBook
bookSettings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ResourceKey<Recipe<?>> recipe) private voidaddHighlight(ResourceKey<Recipe<?>> recipe) intaddRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player) private voidapply(ServerRecipeBook.Packed recipeBook) booleancontains(ResourceKey<Recipe<?>> recipe) voidcopyOverData(ServerRecipeBook other) private voidloadRecipes(List<ResourceKey<Recipe<?>>> recipes, Consumer<ResourceKey<Recipe<?>>> output, Predicate<ResourceKey<Recipe<?>>> isRecognized) voidloadUntrusted(ServerRecipeBook.Packed recipeBook, Predicate<ResourceKey<Recipe<?>>> predicate) pack()voidremove(ResourceKey<Recipe<?>> recipe) voidremoveHighlight(ResourceKey<Recipe<?>> recipe) intremoveRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player) voidsendInitialRecipeBook(ServerPlayer player) Methods inherited from class net.minecraft.stats.RecipeBook
getBookSettings, isFiltering, isOpen, setBookSetting, setBookSettings, setFiltering, setOpen
-
Field Details
-
RECIPE_BOOK_TAG
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
displayResolver
-
known
-
highlight
-
-
Constructor Details
-
ServerRecipeBook
-
-
Method Details
-
add
-
contains
-
remove
-
removeHighlight
-
addHighlight
-
addRecipes
-
removeRecipes
-
loadRecipes
private void loadRecipes(List<ResourceKey<Recipe<?>>> recipes, Consumer<ResourceKey<Recipe<?>>> output, Predicate<ResourceKey<Recipe<?>>> isRecognized) -
sendInitialRecipeBook
-
copyOverData
-
pack
-
apply
-
loadUntrusted
public void loadUntrusted(ServerRecipeBook.Packed recipeBook, Predicate<ResourceKey<Recipe<?>>> predicate)
-