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
blastFurnaceFilteringCraftable, blastFurnaceGuiOpen, filteringCraftable, furnaceFilteringCraftable, furnaceGuiOpen, guiOpen, recipes, smokerFilteringCraftable, smokerGuiOpen, 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, isBlastFurnaceFilteringCraftable, isBlastFurnaceGuiOpen, isFilteringCraftable, isFilteringCraftable, isFurnaceFilteringCraftable, isFurnaceGuiOpen, isGuiOpen, isSmokerFilteringCraftable, isSmokerGuiOpen, onRecipeDisplayed, remove, remove, setBlastFurnaceFilteringCraftable, setBlastFurnaceGuiOpen, setFilteringCraftable, setFurnaceFilteringCraftable, setFurnaceGuiOpen, setGuiOpen, setSmokerFilteringCraftable, setSmokerGuiOpen, shouldDisplay
-
Field Details
-
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
-