Package net.minecraft.server.network
Class ServerRecipeBook
java.lang.Object
net.minecraft.recipe.book.RecipeBook
net.minecraft.server.network.ServerRecipeBook
public class ServerRecipeBook extends RecipeBook
-
Field Summary
Fields inherited from class net.minecraft.recipe.book.RecipeBook
recipes, toBeDisplayed -
Constructor Summary
Constructors Constructor Description ServerRecipeBook() -
Method Summary
Modifier and Type Method Description voidfromTag(CompoundTag tag, RecipeManager recipeManager)private voidhandleList(ListTag list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)intlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)voidsendInitRecipesPacket(ServerPlayerEntity player)private voidsendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)CompoundTagtoTag()intunlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)Methods inherited from class net.minecraft.recipe.book.RecipeBook
add, add, contains, contains, copyFrom, display, display, getOptions, isFilteringCraftable, isFilteringCraftable, isGuiOpen, onRecipeDisplayed, remove, remove, setCategoryOptions, setFilteringCraftable, setGuiOpen, setOptions, shouldDisplay
-
Field Details
-
LOGGER
-
-
Constructor Details
-
ServerRecipeBook
public ServerRecipeBook()
-
-
Method Details
-
unlockRecipes
-
lockRecipes
-
sendUnlockRecipesPacket
private void sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds) -
toTag
-
fromTag
-
handleList
-
sendInitRecipesPacket
-