Class RecipeCache

java.lang.Object
net.minecraft.recipe.RecipeCache

public class RecipeCache extends Object
Mappings:
Namespace Name
named net/minecraft/recipe/RecipeCache
intermediary net/minecraft/class_8884
official dch
  • Field Details

    • cache

      private final RecipeCache.CachedRecipe[] cache
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/recipe/RecipeCache;cache:[Lnet/minecraft/recipe/RecipeCache$CachedRecipe;
      intermediary field_46792 Lnet/minecraft/class_8884;field_46792:[Lnet/minecraft/class_8884$class_8885;
      official a Ldch;a:[Ldch$a;
    • recipeManagerRef

      private WeakReference<ServerRecipeManager> recipeManagerRef
      Mappings:
      Namespace Name Mixin selector
      named recipeManagerRef Lnet/minecraft/recipe/RecipeCache;recipeManagerRef:Ljava/lang/ref/WeakReference;
      intermediary field_46793 Lnet/minecraft/class_8884;field_46793:Ljava/lang/ref/WeakReference;
      official b Ldch;b:Ljava/lang/ref/WeakReference;
  • Constructor Details

    • RecipeCache

      public RecipeCache(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/RecipeCache;<init>(I)V
      intermediary <init> Lnet/minecraft/class_8884;<init>(I)V
      official <init> Ldch;<init>(I)V
  • Method Details

    • getRecipe

      Mappings:
      Namespace Name Mixin selector
      named getRecipe Lnet/minecraft/recipe/RecipeCache;getRecipe(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/recipe/input/CraftingRecipeInput;)Ljava/util/Optional;
      intermediary method_54470 Lnet/minecraft/class_8884;method_54470(Lnet/minecraft/class_3218;Lnet/minecraft/class_9694;)Ljava/util/Optional;
      official a Ldch;a(Lash;Ldbr;)Ljava/util/Optional;
    • validateRecipeManager

      private void validateRecipeManager(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named validateRecipeManager Lnet/minecraft/recipe/RecipeCache;validateRecipeManager(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_54469 Lnet/minecraft/class_8884;method_54469(Lnet/minecraft/class_3218;)V
      official a Ldch;a(Lash;)V
    • getAndCacheRecipe

      private Optional<RecipeEntry<CraftingRecipe>> getAndCacheRecipe(CraftingRecipeInput input, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named getAndCacheRecipe Lnet/minecraft/recipe/RecipeCache;getAndCacheRecipe(Lnet/minecraft/recipe/input/CraftingRecipeInput;Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
      intermediary method_54468 Lnet/minecraft/class_8884;method_54468(Lnet/minecraft/class_9694;Lnet/minecraft/class_3218;)Ljava/util/Optional;
      official a Ldch;a(Ldbr;Lash;)Ljava/util/Optional;
    • sendToFront

      private void sendToFront(int index)
      Mappings:
      Namespace Name Mixin selector
      named sendToFront Lnet/minecraft/recipe/RecipeCache;sendToFront(I)V
      intermediary method_54467 Lnet/minecraft/class_8884;method_54467(I)V
      official a Ldch;a(I)V
    • cache

      private void cache(CraftingRecipeInput input, @Nullable @Nullable RecipeEntry<CraftingRecipe> recipe)
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/recipe/RecipeCache;cache(Lnet/minecraft/recipe/input/CraftingRecipeInput;Lnet/minecraft/recipe/RecipeEntry;)V
      intermediary method_54471 Lnet/minecraft/class_8884;method_54471(Lnet/minecraft/class_9694;Lnet/minecraft/class_8786;)V
      official a Ldch;a(Ldbr;Ldci;)V