Class ServerAboutToStartEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.server.ServerLifecycleEvent
net.neoforged.neoforge.event.server.ServerAboutToStartEvent

public class ServerAboutToStartEvent extends ServerLifecycleEvent
Called before the server begins loading anything. Called after InterModProcessEvent on the dedicated server, and after the player has hit "Play Selected World" in the client. Called before ServerStartingEvent. You can obtain a reference to the server with this event.
Author:
cpw
  • Constructor Details

    • ServerAboutToStartEvent

      public ServerAboutToStartEvent(MinecraftServer server)