类 RecipeManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<RecipeMap>
net.minecraft.world.item.crafting.RecipeManager
- 所有已实现的接口:
PreparableReloadListener
,RecipeAccess
public class RecipeManager
extends SimplePreparableReloadListener<RecipeMap>
implements RecipeAccess
-
嵌套类概要
嵌套类修饰符和类型类说明static interface
RecipeManager.CachedCheck<I extends RecipeInput,
T extends Recipe<I>> static class
static interface
static final record
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明private List
<RecipeManager.ServerDisplayInfo> private final ICondition.IContext
private static final org.slf4j.Logger
private Map
<ResourceKey<RecipePropertySet>, RecipePropertySet> private static final FileToIdConverter
private static final Map
<ResourceKey<RecipePropertySet>, RecipeManager.IngredientExtractor> private RecipeMap
private Map
<ResourceKey<Recipe<?>>, List<RecipeManager.ServerDisplayInfo>> private final HolderLookup.Provider
-
构造器概要
构造器构造器说明RecipeManager
(HolderLookup.Provider p_330459_) 已过时。RecipeManager
(HolderLookup.Provider p_330459_, ICondition.IContext context) -
方法概要
修饰符和类型方法说明protected void
apply
(RecipeMap p_369166_, ResourceManager p_44038_, ProfilerFiller p_44039_) Optional
<RecipeHolder<?>> byKey
(ResourceKey<Recipe<?>> p_364678_) private <T extends Recipe<?>>
RecipeHolder<T> byKeyTyped
(RecipeType<T> p_332930_, ResourceKey<Recipe<?>> p_367936_) static <I extends RecipeInput,
T extends Recipe<I>>
RecipeManager.CachedCheck<I, T> createCheck
(RecipeType<T> p_220268_) (专用程序包) static List
<Ingredient> filterDisabled
(FeatureFlagSet p_369580_, List<Ingredient> p_367920_) void
finalizeRecipeLoading
(FeatureFlagSet p_360842_) private static RecipeManager.IngredientExtractor
forSingleInput
(RecipeType<? extends SingleItemRecipe> p_361054_) protected static RecipeHolder
<?> fromJson
(ResourceKey<Recipe<?>> p_366256_, com.google.gson.JsonObject p_44047_, HolderLookup.Provider p_328308_) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> getRecipeFor
(RecipeType<T> p_44016_, I p_344358_, Level p_44018_) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> getRecipeFor
(RecipeType<T> p_220249_, I p_344518_, Level p_220251_, ResourceKey<Recipe<?>> p_361142_) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> getRecipeFor
(RecipeType<T> p_343647_, I p_342793_, Level p_344483_, RecipeHolder<T> p_345187_) getRecipeFromDisplay
(RecipeDisplayId p_362633_) private static boolean
isIngredientEnabled
(FeatureFlagSet p_361535_, Ingredient p_369900_) void
listDisplaysForRecipe
(ResourceKey<Recipe<?>> p_360782_, Consumer<RecipeDisplayEntry> p_368559_) protected RecipeMap
prepare
(ResourceManager p_368640_, ProfilerFiller p_361102_) propertySet
(ResourceKey<RecipePropertySet> p_367484_) private static List
<RecipeManager.ServerDisplayInfo> unpackRecipeInfo
(Iterable<RecipeHolder<?>> p_361848_, FeatureFlagSet p_362319_) 从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
RECIPE_PROPERTY_SETS
private static final Map<ResourceKey<RecipePropertySet>,RecipeManager.IngredientExtractor> RECIPE_PROPERTY_SETS -
RECIPE_LISTER
-
registries
-
recipes
-
propertySets
-
stonecutterRecipes
-
allDisplays
-
recipeToDisplay
-
context
-
-
构造器详细资料
-
RecipeManager
已过时。Forge: use引用无效
constructor with context
-
RecipeManager
-
-
方法详细资料
-
prepare
- 指定者:
prepare
在类中SimplePreparableReloadListener<RecipeMap>
-
apply
- 指定者:
apply
在类中SimplePreparableReloadListener<RecipeMap>
-
finalizeRecipeLoading
-
filterDisabled
-
isIngredientEnabled
-
getRecipeFor
public <I extends RecipeInput,T extends Recipe<I>> Optional<RecipeHolder<T>> getRecipeFor(RecipeType<T> p_220249_, I p_344518_, Level p_220251_, @Nullable ResourceKey<Recipe<?>> p_361142_) -
getRecipeFor
public <I extends RecipeInput,T extends Recipe<I>> Optional<RecipeHolder<T>> getRecipeFor(RecipeType<T> p_343647_, I p_342793_, Level p_344483_, @Nullable RecipeHolder<T> p_345187_) -
getRecipeFor
public <I extends RecipeInput,T extends Recipe<I>> Optional<RecipeHolder<T>> getRecipeFor(RecipeType<T> p_44016_, I p_344358_, Level p_44018_) -
byKey
-
byKeyTyped
@Nullable private <T extends Recipe<?>> RecipeHolder<T> byKeyTyped(RecipeType<T> p_332930_, ResourceKey<Recipe<?>> p_367936_) -
getSynchronizedItemProperties
-
getSynchronizedStonecutterRecipes
-
propertySet
- 指定者:
propertySet
在接口中RecipeAccess
-
stonecutterRecipes
- 指定者:
stonecutterRecipes
在接口中RecipeAccess
-
getRecipes
-
getRecipeFromDisplay
-
listDisplaysForRecipe
public void listDisplaysForRecipe(ResourceKey<Recipe<?>> p_360782_, Consumer<RecipeDisplayEntry> p_368559_) -
fromJson
protected static RecipeHolder<?> fromJson(ResourceKey<Recipe<?>> p_366256_, com.google.gson.JsonObject p_44047_, HolderLookup.Provider p_328308_) -
createCheck
public static <I extends RecipeInput,T extends Recipe<I>> RecipeManager.CachedCheck<I,T> createCheck(RecipeType<T> p_220268_) -
unpackRecipeInfo
private static List<RecipeManager.ServerDisplayInfo> unpackRecipeInfo(Iterable<RecipeHolder<?>> p_361848_, FeatureFlagSet p_362319_) -
forSingleInput
private static RecipeManager.IngredientExtractor forSingleInput(RecipeType<? extends SingleItemRecipe> p_361054_)
-
引用无效