Class DataPackReloadEndEvent

java.lang.Object
net.vitacraft.serverlibraries.api.event.events.lifecycle.DataPackReloadEndEvent
All Implemented Interfaces:
Event

public class DataPackReloadEndEvent extends Object implements Event
Event that is fired when the data packs have been reloaded.
  • Constructor Details

    • DataPackReloadEndEvent

      public DataPackReloadEndEvent(net.minecraft.server.MinecraftServer server, net.minecraft.resource.LifecycledResourceManager resourceManager, boolean wasSuccessful)
  • Method Details

    • getServer

      public net.minecraft.server.MinecraftServer getServer()
      Returns:
      the server that reloaded the data packs
    • getResourceManager

      public net.minecraft.resource.LifecycledResourceManager getResourceManager()
      Returns:
      the resource manager that was used to reload the data packs
    • wasSuccessful

      public boolean wasSuccessful()
      Returns:
      whether the data pack reload was successful
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Event
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Event