Class RecipeCache

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

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

    • cache

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

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

    • RecipeCache

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

    • getRecipe

      public Optional<CraftingRecipe> getRecipe(World world, RecipeInputInventory inputInventory)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqd;a(Lctp;Lcir;)Ljava/util/Optional;
      intermediary method_54470 Lnet/minecraft/class_8884;method_54470(Lnet/minecraft/class_1937;Lnet/minecraft/class_8566;)Ljava/util/Optional;
      named getRecipe Lnet/minecraft/recipe/RecipeCache;getRecipe(Lnet/minecraft/world/World;Lnet/minecraft/inventory/RecipeInputInventory;)Ljava/util/Optional;
    • validateRecipeManager

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

      private Optional<CraftingRecipe> getAndCacheRecipe(RecipeInputInventory inputInventory, World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqd;a(Lcir;Lctp;)Ljava/util/Optional;
      intermediary method_54468 Lnet/minecraft/class_8884;method_54468(Lnet/minecraft/class_8566;Lnet/minecraft/class_1937;)Ljava/util/Optional;
      named getAndCacheRecipe Lnet/minecraft/recipe/RecipeCache;getAndCacheRecipe(Lnet/minecraft/inventory/RecipeInputInventory;Lnet/minecraft/world/World;)Ljava/util/Optional;
    • sendToFront

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

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