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 cza
  • 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 Lcza;a:[Lcza$a;
    • recipeManagerRef

      private WeakReference<RecipeManager> 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 Lcza;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> Lcza;<init>(I)V
  • Method Details

    • getRecipe

      public Optional<RecipeEntry<CraftingRecipe>> getRecipe(World world, CraftingRecipeInput input)
      Mappings:
      Namespace Name Mixin selector
      named getRecipe Lnet/minecraft/recipe/RecipeCache;getRecipe(Lnet/minecraft/world/World;Lnet/minecraft/recipe/input/CraftingRecipeInput;)Ljava/util/Optional;
      intermediary method_54470 Lnet/minecraft/class_8884;method_54470(Lnet/minecraft/class_1937;Lnet/minecraft/class_9694;)Ljava/util/Optional;
      official a Lcza;a(Ldcw;Lcyp;)Ljava/util/Optional;
    • validateRecipeManager

      private void validateRecipeManager(World world)
      Mappings:
      Namespace Name Mixin selector
      named validateRecipeManager Lnet/minecraft/recipe/RecipeCache;validateRecipeManager(Lnet/minecraft/world/World;)V
      intermediary method_54469 Lnet/minecraft/class_8884;method_54469(Lnet/minecraft/class_1937;)V
      official a Lcza;a(Ldcw;)V
    • getAndCacheRecipe

      private Optional<RecipeEntry<CraftingRecipe>> getAndCacheRecipe(CraftingRecipeInput input, World world)
      Mappings:
      Namespace Name Mixin selector
      named getAndCacheRecipe Lnet/minecraft/recipe/RecipeCache;getAndCacheRecipe(Lnet/minecraft/recipe/input/CraftingRecipeInput;Lnet/minecraft/world/World;)Ljava/util/Optional;
      intermediary method_54468 Lnet/minecraft/class_8884;method_54468(Lnet/minecraft/class_9694;Lnet/minecraft/class_1937;)Ljava/util/Optional;
      official a Lcza;a(Lcyp;Ldcw;)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 Lcza;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 Lcza;a(Lcyp;Lczb;)V