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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.gson.Gson
static final org.apache.logging.log4j.Logger
private final RecipeManager
private it.unimi.dsi.fastutil.objects.Object2IntMap
<ResourceKey<Recipe<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(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) Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload
Methods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOps, makeConditionalOps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
GSON
private static final com.google.gson.Gson 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) - Specified by:
prepare
in 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:
apply
in classSimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Recipe<?>>>>
-
getRecipePriorities
An immutable map of the registered recipe priorities in layered order.
-