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 void
fromTag(CompoundTag tag, RecipeManager recipeManager)
private void
handleList(ListTag list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)
int
lockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)
void
sendInitRecipesPacket(ServerPlayerEntity player)
private void
sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)
CompoundTag
toTag()
int
unlockRecipes(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
-