Interface DataResourceLoader

All Superinterfaces:
ResourceLoader

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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<net.minecraft.server.ServerAdvancementManager>
    The resource reloader store key for the advancement loader.
    static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<DataResourceStore.Mutable>
    The resource reloader store key for the data resource store.
    static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<net.minecraft.world.item.crafting.RecipeManager>
    The resource reloader store key for the recipe manager.

    Fields inherited from interface net.fabricmc.fabric.api.resource.v1.ResourceLoader

    RELOADER_FEATURE_SET_KEY, RELOADER_REGISTRY_LOOKUP_KEY
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    void
    registerReloader(net.minecraft.resources.Identifier id, Function<net.minecraft.core.HolderLookup.Provider,net.minecraft.server.packs.resources.PreparableReloadListener> factory)
    Registers a data resource reloader.

    Methods inherited from interface net.fabricmc.fabric.api.resource.v1.ResourceLoader

    addReloaderOrdering, registerReloader
  • Field Details

    • RECIPE_MANAGER_KEY

      static final net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<net.minecraft.world.item.crafting.RecipeManager> RECIPE_MANAGER_KEY
      The resource reloader store key for the recipe manager.
      API Note:
      The recipe manager is only available in server data resource reloaders.
      It should only be accessed in the application phase of the resource reloader, 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 resource reloader store key for the advancement loader.
      API Note:
      The advancement loader is only available in server data resource reloaders.
      It should only be accessed in the application phase of the resource reloader, 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 resource reloader store key for the data resource store.
      API Note:
      The data resource store is only available in server data resource reloaders.
      It should only be mutated in the application phase of the resource reloader.
  • Method Details