Class RecipePriorityManager

java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>>
net.neoforged.neoforge.common.crafting.RecipePriorityManager
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public class RecipePriorityManager extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final com.google.gson.Gson
     
    static final org.apache.logging.log4j.Logger
     
    private final net.minecraft.world.item.crafting.RecipeManager
     
    private it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipePriorityManager(net.minecraft.world.item.crafting.RecipeManager recipeManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> map, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profilerFiller)
     
    it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>
    An immutable map of the registered recipe priorities in layered order.
    protected it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>
    prepare(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.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

      private final net.minecraft.world.item.crafting.RecipeManager recipeManager
    • recipePriorities

      private it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> recipePriorities
  • Constructor Details

    • RecipePriorityManager

      public RecipePriorityManager(net.minecraft.world.item.crafting.RecipeManager recipeManager)
  • Method Details

    • prepare

      protected it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> prepare(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profilerFiller)
      Specified by:
      prepare in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>>
    • apply

      protected void apply(it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> map, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profilerFiller)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>>>
    • getRecipePriorities

      public it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> getRecipePriorities()
      An immutable map of the registered recipe priorities in layered order.