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/ServerRecipeBookintermediary net/minecraft/class_3441official axd
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerRecipeBook.DisplayCollectorprotected final Set<RegistryKey<Recipe<?>>> Contains recipes that play an animation when first viewed on the recipe book.private static final Loggerstatic final Stringprivate static final com.mojang.serialization.Codec<List<RegistryKey<Recipe<?>>>> protected final Set<RegistryKey<Recipe<?>>> Fields inherited from class net.minecraft.recipe.book.RecipeBook
options - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(ServerRecipeBook recipeBook) private voidhandleList(List<RegistryKey<Recipe<?>>> recipes, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) booleanisUnlocked(RegistryKey<Recipe<?>> recipeKey) voidlock(RegistryKey<Recipe<?>> recipeKey) intlockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) private voidmarkHighlighted(RegistryKey<Recipe<?>> recipeKey) voidreadNbt(NbtCompound nbt, Predicate<RegistryKey<Recipe<?>>> validPredicate) voidtoNbt()voidunlock(RegistryKey<Recipe<?>> recipeKey) intunlockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) voidunmarkHighlighted(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_KEYLnet/minecraft/server/network/ServerRecipeBook;RECIPE_BOOK_KEY:Ljava/lang/String;intermediary field_29820Lnet/minecraft/class_3441;field_29820:Ljava/lang/String;official bLaxd;b:Ljava/lang/String;
 - 
LOGGER
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/slf4j/Logger;intermediary field_15303Lnet/minecraft/class_3441;field_15303:Lorg/slf4j/Logger;official eLaxd;e:Lorg/slf4j/Logger;
 - 
RECIPES_CODEC
- Mappings:
 Namespace Name Mixin selector named RECIPES_CODECLnet/minecraft/server/network/ServerRecipeBook;RECIPES_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56611Lnet/minecraft/class_3441;field_56611:Lcom/mojang/serialization/Codec;official fLaxd;f:Lcom/mojang/serialization/Codec;
 - 
collector
- Mappings:
 Namespace Name Mixin selector named collectorLnet/minecraft/server/network/ServerRecipeBook;collector:Lnet/minecraft/server/network/ServerRecipeBook$DisplayCollector;intermediary field_54552Lnet/minecraft/class_3441;field_54552:Lnet/minecraft/class_3441$class_10271;official gLaxd;g:Laxd$a;
 - 
unlocked
- Mappings:
 Namespace Name Mixin selector named unlockedLnet/minecraft/server/network/ServerRecipeBook;unlocked:Ljava/util/Set;intermediary field_54550Lnet/minecraft/class_3441;field_54550:Ljava/util/Set;official cLaxd;c:Ljava/util/Set;
 - 
highlighted
Contains recipes that play an animation when first viewed on the recipe book.This is saved under
toBeDisplayedkey in the player NBT data.- Mappings:
 Namespace Name Mixin selector named highlightedLnet/minecraft/server/network/ServerRecipeBook;highlighted:Ljava/util/Set;intermediary field_54551Lnet/minecraft/class_3441;field_54551:Ljava/util/Set;official dLaxd;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;)Vintermediary <init>Lnet/minecraft/class_3441;<init>(Lnet/minecraft/class_3441$class_10271;)Vofficial <init>Laxd;<init>(Laxd$a;)V
 
 - 
 - 
Method Details
- 
unlock
- Mappings:
 Namespace Name Mixin selector named unlockLnet/minecraft/server/network/ServerRecipeBook;unlock(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_64588Lnet/minecraft/class_3441;method_64588(Lnet/minecraft/class_5321;)Vofficial aLaxd;a(Lalq;)V
 - 
isUnlocked
- Mappings:
 Namespace Name Mixin selector named isUnlockedLnet/minecraft/server/network/ServerRecipeBook;isUnlocked(Lnet/minecraft/registry/RegistryKey;)Zintermediary method_64593Lnet/minecraft/class_3441;method_64593(Lnet/minecraft/class_5321;)Zofficial bLaxd;b(Lalq;)Z
 - 
lock
- Mappings:
 Namespace Name Mixin selector named lockLnet/minecraft/server/network/ServerRecipeBook;lock(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_64594Lnet/minecraft/class_3441;method_64594(Lnet/minecraft/class_5321;)Vofficial cLaxd;c(Lalq;)V
 - 
unmarkHighlighted
- Mappings:
 Namespace Name Mixin selector named unmarkHighlightedLnet/minecraft/server/network/ServerRecipeBook;unmarkHighlighted(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_64595Lnet/minecraft/class_3441;method_64595(Lnet/minecraft/class_5321;)Vofficial dLaxd;d(Lalq;)V
 - 
markHighlighted
- Mappings:
 Namespace Name Mixin selector named markHighlightedLnet/minecraft/server/network/ServerRecipeBook;markHighlighted(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_64596Lnet/minecraft/class_3441;method_64596(Lnet/minecraft/class_5321;)Vofficial eLaxd;e(Lalq;)V
 - 
unlockRecipes
- Mappings:
 Namespace Name Mixin selector named unlockRecipesLnet/minecraft/server/network/ServerRecipeBook;unlockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)Iintermediary method_14903Lnet/minecraft/class_3441;method_14903(Ljava/util/Collection;Lnet/minecraft/class_3222;)Iofficial aLaxd;a(Ljava/util/Collection;Lasc;)I
 - 
lockRecipes
- Mappings:
 Namespace Name Mixin selector named lockRecipesLnet/minecraft/server/network/ServerRecipeBook;lockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)Iintermediary method_14900Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)Iofficial bLaxd;b(Ljava/util/Collection;Lasc;)I
 - 
toNbt
- Mappings:
 Namespace Name Mixin selector named toNbtLnet/minecraft/server/network/ServerRecipeBook;toNbt()Lnet/minecraft/nbt/NbtCompound;intermediary method_14902Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;official bLaxd;b()Lua;
 - 
readNbt
- Mappings:
 Namespace Name Mixin selector named readNbtLnet/minecraft/server/network/ServerRecipeBook;readNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Predicate;)Vintermediary method_14901Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Ljava/util/function/Predicate;)Vofficial aLaxd;a(Lua;Ljava/util/function/Predicate;)V
 - 
handleList
private void handleList(List<RegistryKey<Recipe<?>>> recipes, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) - Mappings:
 Namespace Name Mixin selector named handleListLnet/minecraft/server/network/ServerRecipeBook;handleList(Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)Vintermediary method_20732Lnet/minecraft/class_3441;method_20732(Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)Vofficial aLaxd;a(Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
 - 
sendInitRecipesPacket
- Mappings:
 Namespace Name Mixin selector named sendInitRecipesPacketLnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_14904Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)Vofficial aLaxd;a(Lasc;)V
 - 
copyFrom
- Mappings:
 Namespace Name Mixin selector named copyFromLnet/minecraft/server/network/ServerRecipeBook;copyFrom(Lnet/minecraft/server/network/ServerRecipeBook;)Vintermediary method_64589Lnet/minecraft/class_3441;method_64589(Lnet/minecraft/class_3441;)Vofficial aLaxd;a(Laxd;)V
 
 -