Interface DataResourceLoader

All Superinterfaces:
ResourceLoader

@NonExtendable public interface DataResourceLoader extends ResourceLoader
Provides various hooks into the server data resource loader.
  • Field Details

    • RECIPE_MANAGER_KEY

      static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<net.minecraft.world.item.crafting.RecipeManager> RECIPE_MANAGER_KEY
      The reload listener state key for the recipe manager.
      API Note:
      The recipe manager is only available in server data reload listeners.
      It should only be accessed in the application phase of the reload listeners, and you should depend on ResourceReloaderKeys.Server.RECIPES.
    • ADVANCEMENT_LOADER_KEY

      static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<net.minecraft.server.ServerAdvancementManager> ADVANCEMENT_LOADER_KEY
      The reload listener state key for the advancement loader.
      API Note:
      The advancement loader is only available in server data reload listeners.
      It should only be accessed in the application phase of the reload listeners, and you should depend on ResourceReloaderKeys.Server.ADVANCEMENTS.
    • DATA_RESOURCE_STORE_KEY

      static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<DataResourceStore.Mutable> DATA_RESOURCE_STORE_KEY
      The reload listener state key for the data resource store.
      API Note:
      The data resource store is only available in server data reload listeners.
      It should only be mutated in the application phase of the reload listeners.
  • Method Details