Package net.minecraft.recipe
Class RecipeManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
net.minecraft.resource.JsonDataLoader
net.minecraft.recipe.RecipeManager
- All Implemented Interfaces:
ResourceReloadListener
public class RecipeManager extends JsonDataLoader
- Mappings:
Namespace Name official bqo
intermediary net/minecraft/class_1863
named net/minecraft/recipe/RecipeManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RecipeManager()
-
Method Summary
Modifier and Type Method Description protected void
apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)
static Recipe<?>
deserialize(Identifier id, JsonObject json)
Optional<? extends Recipe<?>>
get(Identifier id)
<C extends Inventory, T extends Recipe<C>>
List<T>getAllMatches(RecipeType<T> type, C inventory, World world)
private <C extends Inventory, T extends Recipe<C>>
Map<Identifier,Recipe<C>>getAllOfType(RecipeType<T> type)
<C extends Inventory, T extends Recipe<C>>
Optional<T>getFirstMatch(RecipeType<T> type, C inventory, World world)
<C extends Inventory, T extends Recipe<C>>
DefaultedList<ItemStack>getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)
Stream<Identifier>
keys()
<C extends Inventory, T extends Recipe<C>>
List<T>listAllOfType(RecipeType<T> recipeType)
Creates a list of all recipes of the given type.void
setRecipes(Iterable<Recipe<?>> recipes)
Collection<Recipe<?>>
values()
Methods inherited from class net.minecraft.resource.JsonDataLoader
prepare
Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloadListener
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
GSON
- Mappings:
Namespace Name Mixin selector official a
Lbqo;a:Lcom/google/gson/Gson;
intermediary field_19359
Lnet/minecraft/class_1863;field_19359:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/recipe/RecipeManager;GSON:Lcom/google/gson/Gson;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lbqo;b:Lorg/apache/logging/log4j/Logger;
intermediary field_9027
Lnet/minecraft/class_1863;field_9027:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/recipe/RecipeManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
recipes
- Mappings:
Namespace Name Mixin selector official c
Lbqo;c:Ljava/util/Map;
intermediary field_9023
Lnet/minecraft/class_1863;field_9023:Ljava/util/Map;
named recipes
Lnet/minecraft/recipe/RecipeManager;recipes:Ljava/util/Map;
-
errored
private boolean errored- Mappings:
Namespace Name Mixin selector official d
Lbqo;d:Z
intermediary field_9024
Lnet/minecraft/class_1863;field_9024:Z
named errored
Lnet/minecraft/recipe/RecipeManager;errored:Z
-
-
Constructor Details
-
RecipeManager
public RecipeManager()
-
-
Method Details
-
apply
protected void apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)- Specified by:
apply
in classSinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
- Mappings:
Namespace Name Mixin selector official a
Lbqo;a(Ljava/util/Map;Lacx;Laos;)V
intermediary method_20705
Lnet/minecraft/class_1863;method_20705(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
named apply
Lnet/minecraft/recipe/RecipeManager;apply(Ljava/util/Map;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
-
getFirstMatch
public <C extends Inventory, T extends Recipe<C>> Optional<T> getFirstMatch(RecipeType<T> type, C inventory, World world)- Mappings:
Namespace Name Mixin selector official a
Lbqo;a(Lbqq;Lapj;Lbtv;)Ljava/util/Optional;
intermediary method_8132
Lnet/minecraft/class_1863;method_8132(Lnet/minecraft/class_3956;Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Ljava/util/Optional;
named getFirstMatch
Lnet/minecraft/recipe/RecipeManager;getFirstMatch(Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Ljava/util/Optional;
-
listAllOfType
Creates a list of all recipes of the given type. Modifications to the returned list do not affect the manager.- Mappings:
Namespace Name Mixin selector official a
Lbqo;a(Lbqq;)Ljava/util/List;
intermediary method_30027
Lnet/minecraft/class_1863;method_30027(Lnet/minecraft/class_3956;)Ljava/util/List;
named listAllOfType
Lnet/minecraft/recipe/RecipeManager;listAllOfType(Lnet/minecraft/recipe/RecipeType;)Ljava/util/List;
-
getAllMatches
public <C extends Inventory, T extends Recipe<C>> List<T> getAllMatches(RecipeType<T> type, C inventory, World world)- Mappings:
Namespace Name Mixin selector official b
Lbqo;b(Lbqq;Lapj;Lbtv;)Ljava/util/List;
intermediary method_17877
Lnet/minecraft/class_1863;method_17877(Lnet/minecraft/class_3956;Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Ljava/util/List;
named getAllMatches
Lnet/minecraft/recipe/RecipeManager;getAllMatches(Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Ljava/util/List;
-
getAllOfType
private <C extends Inventory, T extends Recipe<C>> Map<Identifier,Recipe<C>> getAllOfType(RecipeType<T> type)- Mappings:
Namespace Name Mixin selector official b
Lbqo;b(Lbqq;)Ljava/util/Map;
intermediary method_17717
Lnet/minecraft/class_1863;method_17717(Lnet/minecraft/class_3956;)Ljava/util/Map;
named getAllOfType
Lnet/minecraft/recipe/RecipeManager;getAllOfType(Lnet/minecraft/recipe/RecipeType;)Ljava/util/Map;
-
getRemainingStacks
public <C extends Inventory, T extends Recipe<C>> DefaultedList<ItemStack> getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)- Mappings:
Namespace Name Mixin selector official c
Lbqo;c(Lbqq;Lapj;Lbtv;)Lgj;
intermediary method_8128
Lnet/minecraft/class_1863;method_8128(Lnet/minecraft/class_3956;Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Lnet/minecraft/class_2371;
named getRemainingStacks
Lnet/minecraft/recipe/RecipeManager;getRemainingStacks(Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Lnet/minecraft/util/collection/DefaultedList;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lbqo;a(Lwb;)Ljava/util/Optional;
intermediary method_8130
Lnet/minecraft/class_1863;method_8130(Lnet/minecraft/class_2960;)Ljava/util/Optional;
named get
Lnet/minecraft/recipe/RecipeManager;get(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
-
values
- Mappings:
Namespace Name Mixin selector official b
Lbqo;b()Ljava/util/Collection;
intermediary method_8126
Lnet/minecraft/class_1863;method_8126()Ljava/util/Collection;
named values
Lnet/minecraft/recipe/RecipeManager;values()Ljava/util/Collection;
-
keys
- Mappings:
Namespace Name Mixin selector official d
Lbqo;d()Ljava/util/stream/Stream;
intermediary method_8127
Lnet/minecraft/class_1863;method_8127()Ljava/util/stream/Stream;
named keys
Lnet/minecraft/recipe/RecipeManager;keys()Ljava/util/stream/Stream;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Lbqo;a(Lwb;Lcom/google/gson/JsonObject;)Lbqn;
intermediary method_17720
Lnet/minecraft/class_1863;method_17720(Lnet/minecraft/class_2960;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1860;
named deserialize
Lnet/minecraft/recipe/RecipeManager;deserialize(Lnet/minecraft/util/Identifier;Lcom/google/gson/JsonObject;)Lnet/minecraft/recipe/Recipe;
-
setRecipes
- Mappings:
Namespace Name Mixin selector official a
Lbqo;a(Ljava/lang/Iterable;)V
intermediary method_20702
Lnet/minecraft/class_1863;method_20702(Ljava/lang/Iterable;)V
named setRecipes
Lnet/minecraft/recipe/RecipeManager;setRecipes(Ljava/lang/Iterable;)V
-