Package net.minecraft.server.network
Class ServerRecipeBook
java.lang.Object
net.minecraft.recipe.book.RecipeBook
net.minecraft.server.network.ServerRecipeBook
- Mappings:
Namespace Name official aha
intermediary net/minecraft/class_3441
named net/minecraft/server/network/ServerRecipeBook
-
Field Summary
Fields inherited from class net.minecraft.recipe.book.RecipeBook
recipes, toBeDisplayed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
handleList
(NbtList list, Consumer<Recipe<?>> handler, RecipeManager recipeManager) int
lockRecipes
(Collection<Recipe<?>> recipes, ServerPlayerEntity player) void
readNbt
(NbtCompound nbt, RecipeManager recipeManager) void
private void
sendUnlockRecipesPacket
(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds) toNbt()
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
-
RECIPE_BOOK_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Laha;c:Ljava/lang/String;
intermediary field_29820
Lnet/minecraft/class_3441;field_29820:Ljava/lang/String;
named RECIPE_BOOK_KEY
Lnet/minecraft/server/network/ServerRecipeBook;RECIPE_BOOK_KEY:Ljava/lang/String;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official d
Laha;d:Lorg/apache/logging/log4j/Logger;
intermediary field_15303
Lnet/minecraft/class_3441;field_15303:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/apache/logging/log4j/Logger;
-
-
Constructor Details
-
ServerRecipeBook
public ServerRecipeBook()
-
-
Method Details
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector official a
Laha;a(Ljava/util/Collection;Ladj;)I
intermediary method_14903
Lnet/minecraft/class_3441;method_14903(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
named unlockRecipes
Lnet/minecraft/server/network/ServerRecipeBook;unlockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
-
lockRecipes
- Mappings:
Namespace Name Mixin selector official b
Laha;b(Ljava/util/Collection;Ladj;)I
intermediary method_14900
Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
named lockRecipes
Lnet/minecraft/server/network/ServerRecipeBook;lockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
-
sendUnlockRecipesPacket
private void sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds) - Mappings:
Namespace Name Mixin selector official a
Laha;a(Lta$a;Ladj;Ljava/util/List;)V
intermediary method_14899
Lnet/minecraft/class_3441;method_14899(Lnet/minecraft/class_2713$class_2714;Lnet/minecraft/class_3222;Ljava/util/List;)V
named sendUnlockRecipesPacket
Lnet/minecraft/server/network/ServerRecipeBook;sendUnlockRecipesPacket(Lnet/minecraft/network/packet/s2c/play/UnlockRecipesS2CPacket$Action;Lnet/minecraft/server/network/ServerPlayerEntity;Ljava/util/List;)V
-
toNbt
- Mappings:
Namespace Name Mixin selector official b
Laha;b()Loc;
intermediary method_14902
Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;
named toNbt
Lnet/minecraft/server/network/ServerRecipeBook;toNbt()Lnet/minecraft/nbt/NbtCompound;
-
readNbt
- Mappings:
Namespace Name Mixin selector official a
Laha;a(Loc;Lbwx;)V
intermediary method_14901
Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Lnet/minecraft/class_1863;)V
named readNbt
Lnet/minecraft/server/network/ServerRecipeBook;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/recipe/RecipeManager;)V
-
handleList
- Mappings:
Namespace Name Mixin selector official a
Laha;a(Loi;Ljava/util/function/Consumer;Lbwx;)V
intermediary method_20732
Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Lnet/minecraft/class_1863;)V
named handleList
Lnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Consumer;Lnet/minecraft/recipe/RecipeManager;)V
-
sendInitRecipesPacket
- Mappings:
Namespace Name Mixin selector official a
Laha;a(Ladj;)V
intermediary method_14904
Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)V
named sendInitRecipesPacket
Lnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-