Class GeyserSpongePlugin
java.lang.Object
org.geysermc.geyser.platform.sponge.GeyserSpongePlugin
- All Implemented Interfaces:
GeyserBootstrap
-
Field Summary
Fields inherited from interface org.geysermc.geyser.GeyserBootstrap
DEFAULT_CHUNK_MANAGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the data folder where files get storedInformation used for the bootstrap section of the debug dumpReturns the current CommandManagerReturns the current GeyserConfigurationReturns the current GeyserLoggerReturns the current PingPassthrough managerReturns the Minecraft version currently being used on the server.voidCalled when the GeyserBootstrap is disabledvoidonEnable()Called when the GeyserBootstrap is enabledvoidonServerStart(org.spongepowered.api.event.game.state.GameStartedServerEvent event)voidonServerStop(org.spongepowered.api.event.game.state.GameStoppedEvent event)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.GeyserBootstrap
getLogsPath, getSocketAddress, getWorldManager
-
Constructor Details
-
GeyserSpongePlugin
public GeyserSpongePlugin()
-
-
Method Details
-
onEnable
public void onEnable()Description copied from interface:GeyserBootstrapCalled when the GeyserBootstrap is enabled- Specified by:
onEnablein interfaceGeyserBootstrap
-
onDisable
public void onDisable()Description copied from interface:GeyserBootstrapCalled when the GeyserBootstrap is disabled- Specified by:
onDisablein interfaceGeyserBootstrap
-
getGeyserConfig
Description copied from interface:GeyserBootstrapReturns the current GeyserConfiguration- Specified by:
getGeyserConfigin interfaceGeyserBootstrap- Returns:
- The current GeyserConfiguration
-
getGeyserLogger
Description copied from interface:GeyserBootstrapReturns the current GeyserLogger- Specified by:
getGeyserLoggerin interfaceGeyserBootstrap- Returns:
- The current GeyserLogger
-
getGeyserCommandManager
Description copied from interface:GeyserBootstrapReturns the current CommandManager- Specified by:
getGeyserCommandManagerin interfaceGeyserBootstrap- Returns:
- The current CommandManager
-
getGeyserPingPassthrough
Description copied from interface:GeyserBootstrapReturns the current PingPassthrough manager- Specified by:
getGeyserPingPassthroughin interfaceGeyserBootstrap- Returns:
- The current PingPassthrough manager
-
getConfigFolder
Description copied from interface:GeyserBootstrapReturn the data folder where files get stored- Specified by:
getConfigFolderin interfaceGeyserBootstrap- Returns:
- Path location of data folder
-
onServerStart
public void onServerStart(org.spongepowered.api.event.game.state.GameStartedServerEvent event) -
onServerStop
public void onServerStop(org.spongepowered.api.event.game.state.GameStoppedEvent event) -
getDumpInfo
Description copied from interface:GeyserBootstrapInformation used for the bootstrap section of the debug dump- Specified by:
getDumpInfoin interfaceGeyserBootstrap- Returns:
- The info about the bootstrap
-
getMinecraftServerVersion
Description copied from interface:GeyserBootstrapReturns the Minecraft version currently being used on the server. This should be only be implemented on platforms that have direct server access - platforms such as proxies always have to be on their latest version to support the newest Minecraft version, but older servers can use ViaVersion to enable newer versions to join.
If used, this should not be null beforeGeyserImplinitialization.- Specified by:
getMinecraftServerVersionin interfaceGeyserBootstrap- Returns:
- the Minecraft version being used on the server, or
nullif not applicable
-