Package net.minecraft.server.network
Class ServerRecipeBook
java.lang.Object
net.minecraft.recipe.book.RecipeBook
net.minecraft.server.network.ServerRecipeBook
public class ServerRecipeBook extends RecipeBook
- Mappings:
Namespace Name official aelintermediary net/minecraft/class_3441named net/minecraft/server/network/ServerRecipeBook
-
Field Summary
Fields inherited from class net.minecraft.recipe.book.RecipeBook
recipes, toBeDisplayed -
Constructor Summary
Constructors Constructor Description ServerRecipeBook() -
Method Summary
Modifier and Type Method Description voidfromTag(CompoundTag tag, RecipeManager recipeManager)private voidhandleList(ListTag list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)intlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)voidsendInitRecipesPacket(ServerPlayerEntity player)private voidsendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)CompoundTagtoTag()intunlockRecipes(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
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLael;c:Lorg/apache/logging/log4j/Logger;intermediary field_15303Lnet/minecraft/class_3441;field_15303:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/apache/logging/log4j/Logger;
-
-
Constructor Details
-
ServerRecipeBook
public ServerRecipeBook()
-
-
Method Details
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector official aLael;a(Ljava/util/Collection;Laaw;)Iintermediary method_14903Lnet/minecraft/class_3441;method_14903(Ljava/util/Collection;Lnet/minecraft/class_3222;)Inamed unlockRecipesLnet/minecraft/server/network/ServerRecipeBook;unlockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
-
lockRecipes
- Mappings:
Namespace Name Mixin selector official bLael;b(Ljava/util/Collection;Laaw;)Iintermediary method_14900Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)Inamed lockRecipesLnet/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 aLael;a(Lrd$a;Laaw;Ljava/util/List;)Vintermediary method_14899Lnet/minecraft/class_3441;method_14899(Lnet/minecraft/class_2713$class_2714;Lnet/minecraft/class_3222;Ljava/util/List;)Vnamed sendUnlockRecipesPacketLnet/minecraft/server/network/ServerRecipeBook;sendUnlockRecipesPacket(Lnet/minecraft/network/packet/s2c/play/UnlockRecipesS2CPacket$Action;Lnet/minecraft/server/network/ServerPlayerEntity;Ljava/util/List;)V
-
toTag
- Mappings:
Namespace Name Mixin selector official bLael;b()Lmq;intermediary method_14902Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;named toTagLnet/minecraft/server/network/ServerRecipeBook;toTag()Lnet/minecraft/nbt/CompoundTag;
-
fromTag
- Mappings:
Namespace Name Mixin selector official aLael;a(Lmq;Lbqo;)Vintermediary method_14901Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Lnet/minecraft/class_1863;)Vnamed fromTagLnet/minecraft/server/network/ServerRecipeBook;fromTag(Lnet/minecraft/nbt/CompoundTag;Lnet/minecraft/recipe/RecipeManager;)V
-
handleList
- Mappings:
Namespace Name Mixin selector official aLael;a(Lmw;Ljava/util/function/Consumer;Lbqo;)Vintermediary method_20732Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Lnet/minecraft/class_1863;)Vnamed handleListLnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/ListTag;Ljava/util/function/Consumer;Lnet/minecraft/recipe/RecipeManager;)V
-
sendInitRecipesPacket
- Mappings:
Namespace Name Mixin selector official aLael;a(Laaw;)Vintermediary method_14904Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)Vnamed sendInitRecipesPacketLnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-