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 awf
-
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 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(NbtList list, 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 bLawf;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 eLawf;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 fLawf;f:Lawf$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 cLawf;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 dLawf;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>Lawf;<init>(Lawf$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 aLawf;a(Laku;)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 bLawf;b(Laku;)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 cLawf;c(Laku;)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 dLawf;d(Laku;)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 eLawf;e(Laku;)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 aLawf;a(Ljava/util/Collection;Lare;)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 bLawf;b(Ljava/util/Collection;Lare;)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 bLawf;b()Ltq;
-
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 aLawf;a(Ltq;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 handleListLnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)Vintermediary method_20732Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)Vofficial aLawf;a(Ltw;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 aLawf;a(Lare;)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 aLawf;a(Lawf;)V
-