类 ServerRecipeBook


  • public class ServerRecipeBook
    extends RecipeBook
    Mappings:
    Namespace Name
    official afb
    intermediary net/minecraft/class_3441
    named net/minecraft/server/network/ServerRecipeBook
    • 字段详细资料

      • field_29820

        public static final String field_29820
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lafb;c:Ljava/lang/String;
        intermediary field_29820 Lnet/minecraft/class_3441;field_29820:Ljava/lang/String;
        named field_29820 Lnet/minecraft/server/network/ServerRecipeBook;field_29820:Ljava/lang/String;
      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official d Lafb;d:Lorg/apache/logging/log4j/Logger;
        intermediary field_15303 Lnet/minecraft/class_3441;field_15303:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/apache/logging/log4j/Logger;
    • 构造器详细资料

      • ServerRecipeBook

        public ServerRecipeBook()
    • 方法详细资料

      • unlockRecipes

        public int unlockRecipes​(Collection<Recipe<?>> recipes,
                                 ServerPlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lafb;a(Ljava/util/Collection;Labk;)I
        intermediary method_14903 Lnet/minecraft/class_3441;method_14903(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
        named unlockRecipes Lnet/minecraft/server/network/ServerRecipeBook;unlockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
      • lockRecipes

        public int lockRecipes​(Collection<Recipe<?>> recipes,
                               ServerPlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official b Lafb;b(Ljava/util/Collection;Labk;)I
        intermediary method_14900 Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
        named lockRecipes Lnet/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 a Lafb;a(Lrl$a;Labk;Ljava/util/List;)V
        intermediary method_14899 Lnet/minecraft/class_3441;method_14899(Lnet/minecraft/class_2713$class_2714;Lnet/minecraft/class_3222;Ljava/util/List;)V
        named sendUnlockRecipesPacket Lnet/minecraft/server/network/ServerRecipeBook;sendUnlockRecipesPacket(Lnet/minecraft/network/packet/s2c/play/UnlockRecipesS2CPacket$Action;Lnet/minecraft/server/network/ServerPlayerEntity;Ljava/util/List;)V
      • toNbt

        public CompoundTag toNbt()
        Mappings:
        Namespace Name Mixin selector
        official b Lafb;b()Lmv;
        intermediary method_14902 Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;
        named toNbt Lnet/minecraft/server/network/ServerRecipeBook;toNbt()Lnet/minecraft/nbt/CompoundTag;
      • readNbt

        public void readNbt​(CompoundTag nbt,
                            RecipeManager recipeManager)
        Mappings:
        Namespace Name Mixin selector
        official a Lafb;a(Lmv;Lbsk;)V
        intermediary method_14901 Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Lnet/minecraft/class_1863;)V
        named readNbt Lnet/minecraft/server/network/ServerRecipeBook;readNbt(Lnet/minecraft/nbt/CompoundTag;Lnet/minecraft/recipe/RecipeManager;)V
      • handleList

        private void handleList​(ListTag list,
                                Consumer<Recipe<?>> handler,
                                RecipeManager recipeManager)
        Mappings:
        Namespace Name Mixin selector
        official a Lafb;a(Lnb;Ljava/util/function/Consumer;Lbsk;)V
        intermediary method_20732 Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Lnet/minecraft/class_1863;)V
        named handleList Lnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/ListTag;Ljava/util/function/Consumer;Lnet/minecraft/recipe/RecipeManager;)V
      • sendInitRecipesPacket

        public void sendInitRecipesPacket​(ServerPlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lafb;a(Labk;)V
        intermediary method_14904 Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)V
        named sendInitRecipesPacket Lnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)V