Package net.minecraft.server.network
Class ServerRecipeBook
java.lang.Object
net.minecraft.recipe.book.RecipeBook
net.minecraft.server.network.ServerRecipeBook
- Mappings:
Namespace Name named net/minecraft/server/network/ServerRecipeBook
intermediary net/minecraft/class_3441
official axk
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ServerRecipeBook.DisplayCollector
protected final Set
<RegistryKey<Recipe<?>>> Contains recipes that play an animation when first viewed on the recipe book.private static final Logger
static final String
protected final Set
<RegistryKey<Recipe<?>>> Fields inherited from class net.minecraft.recipe.book.RecipeBook
options
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(ServerRecipeBook recipeBook) private void
handleList
(NbtList list, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) boolean
isUnlocked
(RegistryKey<Recipe<?>> recipeKey) void
lock
(RegistryKey<Recipe<?>> recipeKey) int
lockRecipes
(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) private void
markHighlighted
(RegistryKey<Recipe<?>> recipeKey) void
readNbt
(NbtCompound nbt, Predicate<RegistryKey<Recipe<?>>> validPredicate) void
toNbt()
void
unlock
(RegistryKey<Recipe<?>> recipeKey) int
unlockRecipes
(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) void
unmarkHighlighted
(RegistryKey<Recipe<?>> recipeKey) Methods inherited from class net.minecraft.recipe.book.RecipeBook
getOptions, isFilteringCraftable, isGuiOpen, setCategoryOptions, setFilteringCraftable, setGuiOpen, setOptions
-
Field Details
-
RECIPE_BOOK_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named RECIPE_BOOK_KEY
Lnet/minecraft/server/network/ServerRecipeBook;RECIPE_BOOK_KEY:Ljava/lang/String;
intermediary field_29820
Lnet/minecraft/class_3441;field_29820:Ljava/lang/String;
official b
Laxk;b:Ljava/lang/String;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/slf4j/Logger;
intermediary field_15303
Lnet/minecraft/class_3441;field_15303:Lorg/slf4j/Logger;
official e
Laxk;e:Lorg/slf4j/Logger;
-
collector
- Mappings:
Namespace Name Mixin selector named collector
Lnet/minecraft/server/network/ServerRecipeBook;collector:Lnet/minecraft/server/network/ServerRecipeBook$DisplayCollector;
intermediary field_54552
Lnet/minecraft/class_3441;field_54552:Lnet/minecraft/class_3441$class_10271;
official f
Laxk;f:Laxk$a;
-
unlocked
- Mappings:
Namespace Name Mixin selector named unlocked
Lnet/minecraft/server/network/ServerRecipeBook;unlocked:Ljava/util/Set;
intermediary field_54550
Lnet/minecraft/class_3441;field_54550:Ljava/util/Set;
official c
Laxk;c:Ljava/util/Set;
-
highlighted
Contains recipes that play an animation when first viewed on the recipe book.This is saved under
toBeDisplayed
key in the player NBT data.- Mappings:
Namespace Name Mixin selector named highlighted
Lnet/minecraft/server/network/ServerRecipeBook;highlighted:Ljava/util/Set;
intermediary field_54551
Lnet/minecraft/class_3441;field_54551:Ljava/util/Set;
official d
Laxk;d:Ljava/util/Set;
-
-
Constructor Details
-
ServerRecipeBook
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/network/ServerRecipeBook;<init>(Lnet/minecraft/server/network/ServerRecipeBook$DisplayCollector;)V
intermediary <init>
Lnet/minecraft/class_3441;<init>(Lnet/minecraft/class_3441$class_10271;)V
official <init>
Laxk;<init>(Laxk$a;)V
-
-
Method Details
-
unlock
- Mappings:
Namespace Name Mixin selector named unlock
Lnet/minecraft/server/network/ServerRecipeBook;unlock(Lnet/minecraft/registry/RegistryKey;)V
intermediary method_64588
Lnet/minecraft/class_3441;method_64588(Lnet/minecraft/class_5321;)V
official a
Laxk;a(Laly;)V
-
isUnlocked
- Mappings:
Namespace Name Mixin selector named isUnlocked
Lnet/minecraft/server/network/ServerRecipeBook;isUnlocked(Lnet/minecraft/registry/RegistryKey;)Z
intermediary method_64593
Lnet/minecraft/class_3441;method_64593(Lnet/minecraft/class_5321;)Z
official b
Laxk;b(Laly;)Z
-
lock
- Mappings:
Namespace Name Mixin selector named lock
Lnet/minecraft/server/network/ServerRecipeBook;lock(Lnet/minecraft/registry/RegistryKey;)V
intermediary method_64594
Lnet/minecraft/class_3441;method_64594(Lnet/minecraft/class_5321;)V
official c
Laxk;c(Laly;)V
-
unmarkHighlighted
- Mappings:
Namespace Name Mixin selector named unmarkHighlighted
Lnet/minecraft/server/network/ServerRecipeBook;unmarkHighlighted(Lnet/minecraft/registry/RegistryKey;)V
intermediary method_64595
Lnet/minecraft/class_3441;method_64595(Lnet/minecraft/class_5321;)V
official d
Laxk;d(Laly;)V
-
markHighlighted
- Mappings:
Namespace Name Mixin selector named markHighlighted
Lnet/minecraft/server/network/ServerRecipeBook;markHighlighted(Lnet/minecraft/registry/RegistryKey;)V
intermediary method_64596
Lnet/minecraft/class_3441;method_64596(Lnet/minecraft/class_5321;)V
official e
Laxk;e(Laly;)V
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector named unlockRecipes
Lnet/minecraft/server/network/ServerRecipeBook;unlockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
intermediary method_14903
Lnet/minecraft/class_3441;method_14903(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
official a
Laxk;a(Ljava/util/Collection;Lasi;)I
-
lockRecipes
- Mappings:
Namespace Name Mixin selector named lockRecipes
Lnet/minecraft/server/network/ServerRecipeBook;lockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
intermediary method_14900
Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
official b
Laxk;b(Ljava/util/Collection;Lasi;)I
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbt
Lnet/minecraft/server/network/ServerRecipeBook;toNbt()Lnet/minecraft/nbt/NbtCompound;
intermediary method_14902
Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;
official b
Laxk;b()Lux;
-
readNbt
- Mappings:
Namespace Name Mixin selector named readNbt
Lnet/minecraft/server/network/ServerRecipeBook;readNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Predicate;)V
intermediary method_14901
Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Ljava/util/function/Predicate;)V
official a
Laxk;a(Lux;Ljava/util/function/Predicate;)V
-
handleList
private void handleList(NbtList list, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) - Mappings:
Namespace Name Mixin selector named handleList
Lnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
intermediary method_20732
Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
official a
Laxk;a(Lvd;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
-
sendInitRecipesPacket
- Mappings:
Namespace Name Mixin selector named sendInitRecipesPacket
Lnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14904
Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)V
official a
Laxk;a(Lasi;)V
-
copyFrom
- Mappings:
Namespace Name Mixin selector named copyFrom
Lnet/minecraft/server/network/ServerRecipeBook;copyFrom(Lnet/minecraft/server/network/ServerRecipeBook;)V
intermediary method_64589
Lnet/minecraft/class_3441;method_64589(Lnet/minecraft/class_3441;)V
official a
Laxk;a(Laxk;)V
-