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 aze
  • Field Details

    • RECIPE_BOOK_KEY

      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 Laze;b:Ljava/lang/String;
    • LOGGER

      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 Laze;e:Lorg/slf4j/Logger;
    • collector

      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 Laze;f:Laze$a;
    • unlocked

      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 Laze;c:Ljava/util/Set;
    • highlighted

      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 Laze;d:Ljava/util/Set;
  • Constructor Details

    • ServerRecipeBook

      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> Laze;<init>(Laze$a;)V
  • Method Details

    • unlock

      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 Laze;a(Lamd;)V
    • isUnlocked

      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 Laze;b(Lamd;)Z
    • lock

      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 Laze;c(Lamd;)V
    • unmarkHighlighted

      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 Laze;d(Lamd;)V
    • markHighlighted

      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 Laze;e(Lamd;)V
    • unlockRecipes

      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 Laze;a(Ljava/util/Collection;Lauc;)I
    • lockRecipes

      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 Laze;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 handleList Lnet/minecraft/server/network/ServerRecipeBook;handleList(Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
      intermediary method_20732 Lnet/minecraft/class_3441;method_20732(Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
      official a Laze;a(Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
    • sendInitRecipesPacket

      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 Laze;a(Lauc;)V
    • copyFrom

      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 Laze;a(Laze;)V
    • pack

      public ServerRecipeBook.Packed pack()
      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/server/network/ServerRecipeBook;pack()Lnet/minecraft/server/network/ServerRecipeBook$Packed;
      intermediary method_71344 Lnet/minecraft/class_3441;method_71344()Lnet/minecraft/class_3441$class_11328;
      official b Laze;b()Laze$b;
    • unpack

      private void unpack(ServerRecipeBook.Packed packed)
      Mappings:
      Namespace Name Mixin selector
      named unpack Lnet/minecraft/server/network/ServerRecipeBook;unpack(Lnet/minecraft/server/network/ServerRecipeBook$Packed;)V
      intermediary method_71342 Lnet/minecraft/class_3441;method_71342(Lnet/minecraft/class_3441$class_11328;)V
      official a Laze;a(Laze$b;)V
    • unpack

      public void unpack(ServerRecipeBook.Packed packed, Predicate<RegistryKey<Recipe<?>>> validPredicate)
      Mappings:
      Namespace Name Mixin selector
      named unpack Lnet/minecraft/server/network/ServerRecipeBook;unpack(Lnet/minecraft/server/network/ServerRecipeBook$Packed;Ljava/util/function/Predicate;)V
      intermediary method_71343 Lnet/minecraft/class_3441;method_71343(Lnet/minecraft/class_3441$class_11328;Ljava/util/function/Predicate;)V
      official a Laze;a(Laze$b;Ljava/util/function/Predicate;)V