Class ServerRecipeBook

java.lang.Object
net.minecraft.recipe.book.RecipeBook
net.minecraft.server.network.ServerRecipeBook

public class ServerRecipeBook extends RecipeBook
Mappings:
Namespace Name
named net/minecraft/server/network/ServerRecipeBook
intermediary net/minecraft/class_3441
official awf
  • Field Details Link icon

    • RECIPE_BOOK_KEY Link icon

      public static final String RECIPE_BOOK_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RECIPE_BOOK_KEY Lnet/minecraft/server/network/ServerRecipeBook;RECIPE_BOOK_KEY:Ljava/lang/String;
      intermediary field_29820 Lnet/minecraft/class_3441;field_29820:Ljava/lang/String;
      official b Lawf;b:Ljava/lang/String;
    • LOGGER Link icon

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/slf4j/Logger;
      intermediary field_15303 Lnet/minecraft/class_3441;field_15303:Lorg/slf4j/Logger;
      official e Lawf;e:Lorg/slf4j/Logger;
    • collector Link icon

      private final ServerRecipeBook.DisplayCollector collector
      Mappings:
      Namespace Name Mixin selector
      named collector Lnet/minecraft/server/network/ServerRecipeBook;collector:Lnet/minecraft/server/network/ServerRecipeBook$DisplayCollector;
      intermediary field_54552 Lnet/minecraft/class_3441;field_54552:Lnet/minecraft/class_3441$class_10271;
      official f Lawf;f:Lawf$a;
    • unlocked Link icon

      protected final Set<RegistryKey<Recipe<?>>> unlocked
      Mappings:
      Namespace Name Mixin selector
      named unlocked Lnet/minecraft/server/network/ServerRecipeBook;unlocked:Ljava/util/Set;
      intermediary field_54550 Lnet/minecraft/class_3441;field_54550:Ljava/util/Set;
      official c Lawf;c:Ljava/util/Set;
    • highlighted Link icon

      protected final Set<RegistryKey<Recipe<?>>> highlighted
      Contains recipes that play an animation when first viewed on the recipe book.

      This is saved under toBeDisplayed key in the player NBT data.

      Mappings:
      Namespace Name Mixin selector
      named highlighted Lnet/minecraft/server/network/ServerRecipeBook;highlighted:Ljava/util/Set;
      intermediary field_54551 Lnet/minecraft/class_3441;field_54551:Ljava/util/Set;
      official d Lawf;d:Ljava/util/Set;
  • Constructor Details Link icon

    • ServerRecipeBook Link icon

      public ServerRecipeBook(ServerRecipeBook.DisplayCollector collector)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/network/ServerRecipeBook;<init>(Lnet/minecraft/server/network/ServerRecipeBook$DisplayCollector;)V
      intermediary <init> Lnet/minecraft/class_3441;<init>(Lnet/minecraft/class_3441$class_10271;)V
      official <init> Lawf;<init>(Lawf$a;)V
  • Method Details Link icon

    • unlock Link icon

      public void unlock(RegistryKey<Recipe<?>> recipeKey)
      Mappings:
      Namespace Name Mixin selector
      named unlock Lnet/minecraft/server/network/ServerRecipeBook;unlock(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_64588 Lnet/minecraft/class_3441;method_64588(Lnet/minecraft/class_5321;)V
      official a Lawf;a(Laku;)V
    • isUnlocked Link icon

      public boolean isUnlocked(RegistryKey<Recipe<?>> recipeKey)
      Mappings:
      Namespace Name Mixin selector
      named isUnlocked Lnet/minecraft/server/network/ServerRecipeBook;isUnlocked(Lnet/minecraft/registry/RegistryKey;)Z
      intermediary method_64593 Lnet/minecraft/class_3441;method_64593(Lnet/minecraft/class_5321;)Z
      official b Lawf;b(Laku;)Z
    • lock Link icon

      public void lock(RegistryKey<Recipe<?>> recipeKey)
      Mappings:
      Namespace Name Mixin selector
      named lock Lnet/minecraft/server/network/ServerRecipeBook;lock(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_64594 Lnet/minecraft/class_3441;method_64594(Lnet/minecraft/class_5321;)V
      official c Lawf;c(Laku;)V
    • unmarkHighlighted Link icon

      public void unmarkHighlighted(RegistryKey<Recipe<?>> recipeKey)
      Mappings:
      Namespace Name Mixin selector
      named unmarkHighlighted Lnet/minecraft/server/network/ServerRecipeBook;unmarkHighlighted(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_64595 Lnet/minecraft/class_3441;method_64595(Lnet/minecraft/class_5321;)V
      official d Lawf;d(Laku;)V
    • markHighlighted Link icon

      private void markHighlighted(RegistryKey<Recipe<?>> recipeKey)
      Mappings:
      Namespace Name Mixin selector
      named markHighlighted Lnet/minecraft/server/network/ServerRecipeBook;markHighlighted(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_64596 Lnet/minecraft/class_3441;method_64596(Lnet/minecraft/class_5321;)V
      official e Lawf;e(Laku;)V
    • unlockRecipes Link icon

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

      public int lockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named lockRecipes Lnet/minecraft/server/network/ServerRecipeBook;lockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
      intermediary method_14900 Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)I
      official b Lawf;b(Ljava/util/Collection;Lare;)I
    • toNbt Link icon

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      named toNbt Lnet/minecraft/server/network/ServerRecipeBook;toNbt()Lnet/minecraft/nbt/NbtCompound;
      intermediary method_14902 Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;
      official b Lawf;b()Ltq;
    • readNbt Link icon

      public void readNbt(NbtCompound nbt, Predicate<RegistryKey<Recipe<?>>> validPredicate)
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/server/network/ServerRecipeBook;readNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Predicate;)V
      intermediary method_14901 Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Ljava/util/function/Predicate;)V
      official a Lawf;a(Ltq;Ljava/util/function/Predicate;)V
    • handleList Link icon

      private void handleList(NbtList list, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate)
      Mappings:
      Namespace Name Mixin selector
      named handleList Lnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
      intermediary method_20732 Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
      official a Lawf;a(Ltw;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
    • sendInitRecipesPacket Link icon

      public void sendInitRecipesPacket(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named sendInitRecipesPacket Lnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)V
      intermediary method_14904 Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)V
      official a Lawf;a(Lare;)V
    • copyFrom Link icon

      public void copyFrom(ServerRecipeBook recipeBook)
      Mappings:
      Namespace Name Mixin selector
      named copyFrom Lnet/minecraft/server/network/ServerRecipeBook;copyFrom(Lnet/minecraft/server/network/ServerRecipeBook;)V
      intermediary method_64589 Lnet/minecraft/class_3441;method_64589(Lnet/minecraft/class_3441;)V
      official a Lawf;a(Lawf;)V