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 cyy
  • 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 Lcyy;a:[Lcyy$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 Lcyy;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> Lcyy;<init>(I)V
  • Method Details

    • getRecipe

      public Optional<RecipeEntry<CraftingRecipe>> getRecipe(World world, RecipeInputInventory inputInventory)
      Mappings:
      Namespace Name Mixin selector
      named getRecipe Lnet/minecraft/recipe/RecipeCache;getRecipe(Lnet/minecraft/world/World;Lnet/minecraft/inventory/RecipeInputInventory;)Ljava/util/Optional;
      intermediary method_54470 Lnet/minecraft/class_8884;method_54470(Lnet/minecraft/class_1937;Lnet/minecraft/class_8566;)Ljava/util/Optional;
      official a Lcyy;a(Ldca;Lcqm;)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 Lcyy;a(Ldca;)V
    • getAndCacheRecipe

      private Optional<RecipeEntry<CraftingRecipe>> getAndCacheRecipe(RecipeInputInventory inputInventory, World world)
      Mappings:
      Namespace Name Mixin selector
      named getAndCacheRecipe Lnet/minecraft/recipe/RecipeCache;getAndCacheRecipe(Lnet/minecraft/inventory/RecipeInputInventory;Lnet/minecraft/world/World;)Ljava/util/Optional;
      intermediary method_54468 Lnet/minecraft/class_8884;method_54468(Lnet/minecraft/class_8566;Lnet/minecraft/class_1937;)Ljava/util/Optional;
      official a Lcyy;a(Lcqm;Ldca;)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 Lcyy;a(I)V
    • cache

      private void cache(List<ItemStack> inputStacks, @Nullable @Nullable RecipeEntry<CraftingRecipe> recipe)
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/recipe/RecipeCache;cache(Ljava/util/List;Lnet/minecraft/recipe/RecipeEntry;)V
      intermediary method_54471 Lnet/minecraft/class_8884;method_54471(Ljava/util/List;Lnet/minecraft/class_8786;)V
      official a Lcyy;a(Ljava/util/List;Lcyz;)V