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 aze
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final record - 
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 Stringprotected 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) pack()voidvoidunlock(RegistryKey<Recipe<?>> recipeKey) intunlockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) voidunmarkHighlighted(RegistryKey<Recipe<?>> recipeKey) private voidunpack(ServerRecipeBook.Packed packed) voidunpack(ServerRecipeBook.Packed packed, Predicate<RegistryKey<Recipe<?>>> validPredicate) 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 bLaze;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 eLaze;e:Lorg/slf4j/Logger;
 - 
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 fLaze;f:Laze$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 cLaze;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 dLaze;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>Laze;<init>(Laze$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 aLaze;a(Lamd;)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 bLaze;b(Lamd;)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 cLaze;c(Lamd;)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 dLaze;d(Lamd;)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 eLaze;e(Lamd;)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 aLaze;a(Ljava/util/Collection;Lauc;)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 bLaze;b(Ljava/util/Collection;Lauc;)I
 - 
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 aLaze;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 aLaze;a(Lauc;)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 aLaze;a(Laze;)V
 - 
pack
- Mappings:
 Namespace Name Mixin selector named packLnet/minecraft/server/network/ServerRecipeBook;pack()Lnet/minecraft/server/network/ServerRecipeBook$Packed;intermediary method_71344Lnet/minecraft/class_3441;method_71344()Lnet/minecraft/class_3441$class_11328;official bLaze;b()Laze$b;
 - 
unpack
- Mappings:
 Namespace Name Mixin selector named unpackLnet/minecraft/server/network/ServerRecipeBook;unpack(Lnet/minecraft/server/network/ServerRecipeBook$Packed;)Vintermediary method_71342Lnet/minecraft/class_3441;method_71342(Lnet/minecraft/class_3441$class_11328;)Vofficial aLaze;a(Laze$b;)V
 - 
unpack
public void unpack(ServerRecipeBook.Packed packed, Predicate<RegistryKey<Recipe<?>>> validPredicate) - Mappings:
 Namespace Name Mixin selector named unpackLnet/minecraft/server/network/ServerRecipeBook;unpack(Lnet/minecraft/server/network/ServerRecipeBook$Packed;Ljava/util/function/Predicate;)Vintermediary method_71343Lnet/minecraft/class_3441;method_71343(Lnet/minecraft/class_3441$class_11328;Ljava/util/function/Predicate;)Vofficial aLaze;a(Laze$b;Ljava/util/function/Predicate;)V
 
 -