Package org.geysermc.geyser
Interface GeyserBootstrap
- All Known Implementing Classes:
GeyserBungeePlugin
,GeyserSpigotPlugin
,GeyserSpongePlugin
,GeyserStandaloneBootstrap
,GeyserVelocityPlugin
public interface GeyserBootstrap
-
Field Summary
-
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 managerdefault Path
default String
Returns the Minecraft version currently being used on the server.default SocketAddress
default WorldManager
Returns the current WorldManagervoid
Called when the GeyserBootstrap is disabledvoid
onEnable()
Called when the GeyserBootstrap is enabled
-
Field Details
-
DEFAULT_CHUNK_MANAGER
-
-
Method Details
-
onEnable
void onEnable()Called when the GeyserBootstrap is enabled -
onDisable
void onDisable()Called when the GeyserBootstrap is disabled -
getGeyserConfig
GeyserConfiguration getGeyserConfig()Returns the current GeyserConfiguration- Returns:
- The current GeyserConfiguration
-
getGeyserLogger
GeyserLogger getGeyserLogger()Returns the current GeyserLogger- Returns:
- The current GeyserLogger
-
getGeyserCommandManager
CommandManager getGeyserCommandManager()Returns the current CommandManager- Returns:
- The current CommandManager
-
getGeyserPingPassthrough
IGeyserPingPassthrough getGeyserPingPassthrough()Returns the current PingPassthrough manager- Returns:
- The current PingPassthrough manager
-
getWorldManager
Returns the current WorldManager- Returns:
- the current WorldManager
-
getConfigFolder
Path getConfigFolder()Return the data folder where files get stored- Returns:
- Path location of data folder
-
getDumpInfo
BootstrapDumpInfo getDumpInfo()Information used for the bootstrap section of the debug dump- Returns:
- The info about the bootstrap
-
getMinecraftServerVersion
Returns 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 beforeGeyserImpl
initialization.- Returns:
- the Minecraft version being used on the server, or
null
if not applicable
-
getSocketAddress
-
getLogsPath
-