Interface ServerLifecycleEvents.EndDataPackReload

Enclosing class:
ServerLifecycleEvents
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 ServerLifecycleEvents.EndDataPackReload
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    endDataPackReload​(net.minecraft.server.MinecraftServer server, net.minecraft.resource.ServerResourceManager serverResourceManager, boolean success)
    Called after data packs on a Minecraft server have been reloaded.
  • Method Details

    • endDataPackReload

      void endDataPackReload(net.minecraft.server.MinecraftServer server, net.minecraft.resource.ServerResourceManager serverResourceManager, boolean success)
      Called after data packs on a Minecraft server have been reloaded.

      If the reload was not successful, the old data packs will be kept.

      Parameters:
      server - the server
      serverResourceManager - the server resource manager
      success - if the reload was successful