Class RecipePriorityManager
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>>>
net.neoforged.neoforge.common.crafting.RecipePriorityManager
- All Implemented Interfaces:
PreparableReloadListener
public class RecipePriorityManager
extends SimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier, PreparableReloadListener.SharedState, PreparableReloadListener.StateKey<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Gsonstatic final org.apache.logging.log4j.Loggerprivate final RecipeManagerprivate it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>> map, ResourceManager resourceManager, ProfilerFiller profilerFiller) it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>> An immutable map of the registered recipe priorities in layered order.protected it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>> prepare(ResourceManager resourceManager, ProfilerFiller profilerFiller) Performs any reloading that can be done off-thread, such as file IOMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOps, makeConditionalOpsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName, prepareSharedState
-
Field Details
-
GSON
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER -
recipeManager
-
recipePriorities
-
-
Constructor Details
-
RecipePriorityManager
-
-
Method Details
-
prepare
protected it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>> prepare(ResourceManager resourceManager, ProfilerFiller profilerFiller) Description copied from class:SimplePreparableReloadListenerPerforms any reloading that can be done off-thread, such as file IO- Specified by:
preparein classSimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>>>
-
apply
protected void apply(it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>> map, ResourceManager resourceManager, ProfilerFiller profilerFiller) - Specified by:
applyin classSimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>>>
-
getRecipePriorities
An immutable map of the registered recipe priorities in layered order.
-