Package org.geysermc.connector
Class GeyserConnector
java.lang.Object
org.geysermc.connector.GeyserConnector
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(GeyserSession player)Deprecated.static GeyserConnectorgetPlayerByUuid(UUID uuid)Gets a player by their current UUIDgetPlayerByXuid(String xuid)Gets a player by their Xbox user identifierbooleanReturns false if this Geyser instance is running in an IDE.voidreload()voidremovePlayer(GeyserSession player)voidshutdown()static GeyserConnectorstart(PlatformType platformType, GeyserBootstrap bootstrap)
-
Field Details
-
JSON_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER -
NAME
- See Also:
- Constant Field Values
-
GIT_VERSION
- See Also:
- Constant Field Values
-
VERSION
- See Also:
- Constant Field Values
-
MINECRAFT_VERSION
- See Also:
- Constant Field Values
-
OAUTH_CLIENT_ID
Oauth client ID for Microsoft authentication- See Also:
- Constant Field Values
-
-
Method Details
-
shutdown
public void shutdown() -
addPlayer
-
removePlayer
-
getPlayerByUuid
Gets a player by their current UUID- Parameters:
uuid- the uuid- Returns:
- the player or
nullif there is no player online with this UUID
-
getPlayerByXuid
Gets a player by their Xbox user identifier- Parameters:
xuid- the Xbox user identifier- Returns:
- the player or
nullif there is no player online with this xuid
-
start
-
reload
public void reload() -
getLogger
-
getConfig
-
getCommandManager
-
getWorldManager
-
getTimeSyncer
-
isProductionEnvironment
public boolean isProductionEnvironment()Returns false if this Geyser instance is running in an IDE. This only needs to be used in cases where files expected to be in a jarfile are not present.- Returns:
- true if the version number is not 'DEV'.
-
getDefaultAuthType
Deprecated.Deprecated. Get the AuthType from the GeyserConfiguration throughgetConfig()- Returns:
- The
-
getInstance
-