Package net.minecraft.stats
Class ServerRecipeBook
java.lang.Object
net.minecraft.stats.RecipeBook
net.minecraft.stats.ServerRecipeBook
-
Field Summary
Fields inherited from class net.minecraft.stats.RecipeBook
highlight, known
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
addRecipes
(Collection<RecipeHolder<?>> p_12792_, ServerPlayer p_12793_) void
fromNbt
(CompoundTag p_12795_, RecipeManager p_12796_) private void
loadRecipes
(ListTag p_12798_, Consumer<RecipeHolder<?>> p_12799_, RecipeManager p_12800_) int
removeRecipes
(Collection<RecipeHolder<?>> p_12807_, ServerPlayer p_12808_) void
sendInitialRecipeBook
(ServerPlayer p_12790_) private void
sendRecipes
(ClientboundRecipePacket.State p_12802_, ServerPlayer p_12803_, List<ResourceLocation> p_12804_) toNbt()
Methods inherited from class net.minecraft.stats.RecipeBook
add, add, addHighlight, addHighlight, contains, contains, copyOverData, getBookSettings, isFiltering, isFiltering, isOpen, remove, remove, removeHighlight, setBookSetting, setBookSettings, setFiltering, setOpen, willHighlight
-
Field Details
-
RECIPE_BOOK_TAG
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
ServerRecipeBook
public ServerRecipeBook()
-
-
Method Details
-
addRecipes
-
removeRecipes
-
sendRecipes
private void sendRecipes(ClientboundRecipePacket.State p_12802_, ServerPlayer p_12803_, List<ResourceLocation> p_12804_) -
toNbt
-
fromNbt
-
loadRecipes
private void loadRecipes(ListTag p_12798_, Consumer<RecipeHolder<?>> p_12799_, RecipeManager p_12800_) -
sendInitialRecipeBook
-