Interface ResourceLoaderEvents.StartDataPackReload

All Superinterfaces:
CommonEventEntrypoint
Enclosing class:
ResourceLoaderEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ResourceLoaderEvents.StartDataPackReload extends CommonEventEntrypoint
Functional interface to be implemented on callbacks for ResourceLoaderEvents.START_DATA_PACK_RELOAD.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStartDataPackReload(@Nullable net.minecraft.server.MinecraftServer server, @Nullable net.minecraft.server.packs.resources.ResourceManager oldResourceManager)
    Called before data packs on a Minecraft server have been reloaded.
  • Method Details

    • onStartDataPackReload

      void onStartDataPackReload(@Nullable @Nullable net.minecraft.server.MinecraftServer server, @Nullable @Nullable net.minecraft.server.packs.resources.ResourceManager oldResourceManager)
      Called before data packs on a Minecraft server have been reloaded.
      Parameters:
      server - the server, may be null for the first reload
      oldResourceManager - the old resource manager, to be replaced, may be null for the first reload