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 axk
  • 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 Laxk;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 Laxk;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 Laxk;f:Laxk$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 Laxk;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 Laxk;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> Laxk;<init>(Laxk$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 Laxk;a(Laly;)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 Laxk;b(Laly;)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 Laxk;c(Laly;)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 Laxk;d(Laly;)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 Laxk;e(Laly;)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 Laxk;a(Ljava/util/Collection;Lasi;)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 Laxk;b(Ljava/util/Collection;Lasi;)I
    • toNbt

      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 Laxk;b()Lux;
    • readNbt

      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 Laxk;a(Lux;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 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 Laxk;a(Lvd;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 Laxk;a(Lasi;)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 Laxk;a(Laxk;)V