Package org.geysermc.geyser
Class GeyserImpl
java.lang.Object
org.geysermc.geyser.GeyserImpl
- All Implemented Interfaces:
org.geysermc.api.GeyserApiBase,GeyserApi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable GeyserSessionconnectionByName(@NonNull String name)@Nullable GeyserSessionconnectionByUuid(@NonNull UUID uuid)@Nullable GeyserSessionconnectionByXuid(@NonNull String xuid)static GeyserImpl@NonNull List<GeyserSession>booleanReturns false if this Geyser instance is running in an IDE.@Nullable StringrefreshTokenFor(@NonNull String bedrockName)voidreload()voidsaveRefreshToken(@NonNull String bedrockName, @NonNull String refreshToken)voidshutdown()static GeyserImplstart(PlatformType platformType, GeyserBootstrap bootstrap)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.api.GeyserApiBase
majorApiVersion, minorApiVersion
-
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
-
OAUTH_CLIENT_ID
Oauth client ID for Microsoft authentication- See Also:
- Constant Field Values
-
-
Method Details
-
connectionByName
- Specified by:
connectionByNamein interfaceGeyserApi- Specified by:
connectionByNamein interfaceorg.geysermc.api.GeyserApiBase
-
onlineConnections
- Specified by:
onlineConnectionsin interfaceGeyserApi- Specified by:
onlineConnectionsin interfaceorg.geysermc.api.GeyserApiBase
-
connectionByUuid
- Specified by:
connectionByUuidin interfaceGeyserApi- Specified by:
connectionByUuidin interfaceorg.geysermc.api.GeyserApiBase
-
connectionByXuid
- Specified by:
connectionByXuidin interfaceGeyserApi- Specified by:
connectionByXuidin interfaceorg.geysermc.api.GeyserApiBase
-
shutdown
public void shutdown() -
reload
public void reload() -
productionEnvironment
public boolean productionEnvironment()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.- Specified by:
productionEnvironmentin interfaceGeyserApi- Returns:
- true if the version number is not 'DEV'.
-
start
-
getLogger
-
getConfig
-
getCommandManager
-
getWorldManager
-
refreshTokenFor
-
saveRefreshToken
-
getInstance
-