Package org.geysermc.geyser
Class GeyserImpl
java.lang.Object
org.geysermc.geyser.GeyserImpl
- All Implemented Interfaces:
org.geysermc.api.GeyserApiBase,org.geysermc.geyser.api.GeyserApi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NonNull org.geysermc.geyser.api.network.BedrockListenerint@NonNull GeyserCommandManager@Nullable GeyserSessionconnectionByUuid(@NonNull UUID uuid)@Nullable GeyserSessionconnectionByXuid(@NonNull String xuid)@NonNull org.geysermc.geyser.api.network.RemoteServer@NonNull org.geysermc.geyser.api.event.EventBus<org.geysermc.geyser.api.event.EventRegistrar>eventBus()@NonNull GeyserExtensionManagerorg.geysermc.floodgate.crypto.FloodgateCipherorg.geysermc.geyser.api.event.EventBus<org.geysermc.geyser.api.event.EventRegistrar>static GeyserImplorg.geysermc.common.PlatformTypevoidbooleanisBedrockPlayer(@NonNull UUID uuid)booleanReturns false if this Geyser instance is running in an IDE.booleanstatic GeyserImplload(org.geysermc.common.PlatformType platformType, GeyserBootstrap bootstrap)@NonNull List<GeyserSession>int<R extends T, T>
@NonNull R@Nullable StringrefreshTokenFor(@NonNull String bedrockName)voidreload()voidsaveRefreshToken(@NonNull String bedrockName, @NonNull String refreshToken)booleanbooleansendForm(@NonNull UUID uuid, @NonNull org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder)static voidsetShouldStartListener(boolean shouldStartListener)This is used in GeyserConnect to stop the bedrock server binding to a portvoidshutdown()static voidstart()boolean@MonotonicNonNull StringMethods 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
-
BUILD_NUMBER
- See Also:
- Constant Field Values
-
BRANCH
- See Also:
- Constant Field Values
-
COMMIT
- See Also:
- Constant Field Values
-
REPOSITORY
- See Also:
- Constant Field Values
-
OAUTH_CLIENT_ID
Oauth client ID for Microsoft authentication- See Also:
- Constant Field Values
-
-
Method Details
-
initialize
public void initialize() -
onlineConnections
- Specified by:
onlineConnectionsin interfaceorg.geysermc.geyser.api.GeyserApi- Specified by:
onlineConnectionsin interfaceorg.geysermc.api.GeyserApiBase
-
onlineConnectionsCount
public int onlineConnectionsCount()- Specified by:
onlineConnectionsCountin interfaceorg.geysermc.api.GeyserApiBase
-
usernamePrefix
- Specified by:
usernamePrefixin interfaceorg.geysermc.api.GeyserApiBase
-
connectionByUuid
- Specified by:
connectionByUuidin interfaceorg.geysermc.geyser.api.GeyserApi- Specified by:
connectionByUuidin interfaceorg.geysermc.api.GeyserApiBase
-
connectionByXuid
- Specified by:
connectionByXuidin interfaceorg.geysermc.geyser.api.GeyserApi- Specified by:
connectionByXuidin interfaceorg.geysermc.api.GeyserApiBase
-
isBedrockPlayer
- Specified by:
isBedrockPlayerin interfaceorg.geysermc.api.GeyserApiBase
-
sendForm
- Specified by:
sendFormin interfaceorg.geysermc.api.GeyserApiBase
-
sendForm
public boolean sendForm(@NonNull UUID uuid, @NonNull org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder)- Specified by:
sendFormin interfaceorg.geysermc.api.GeyserApiBase
-
transfer
- Specified by:
transferin interfaceorg.geysermc.api.GeyserApiBase
-
shutdown
public void shutdown() -
reload
public void reload() -
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'.
-
extensionManager
- Specified by:
extensionManagerin interfaceorg.geysermc.geyser.api.GeyserApi
-
commandManager
-
provider
- Specified by:
providerin interfaceorg.geysermc.geyser.api.GeyserApi
-
eventBus
public @NonNull org.geysermc.geyser.api.event.EventBus<org.geysermc.geyser.api.event.EventRegistrar> eventBus()- Specified by:
eventBusin interfaceorg.geysermc.geyser.api.GeyserApi
-
defaultRemoteServer
public @NonNull org.geysermc.geyser.api.network.RemoteServer defaultRemoteServer()- Specified by:
defaultRemoteServerin interfaceorg.geysermc.geyser.api.GeyserApi
-
bedrockListener
public @NonNull org.geysermc.geyser.api.network.BedrockListener bedrockListener()- Specified by:
bedrockListenerin interfaceorg.geysermc.geyser.api.GeyserApi
-
buildNumber
public int buildNumber() -
load
public static GeyserImpl load(org.geysermc.common.PlatformType platformType, GeyserBootstrap bootstrap) -
start
public static void start() -
getLogger
-
getConfig
-
getWorldManager
-
refreshTokenFor
-
saveRefreshToken
-
getInstance
-
getSessionManager
-
getCipher
public org.geysermc.floodgate.crypto.FloodgateCipher getCipher() -
getSkinUploader
-
getNewsHandler
-
getErosionUnixListener
-
isShuttingDown
public boolean isShuttingDown() -
getScheduledThread
-
getGeyserServer
-
getPlatformType
public org.geysermc.common.PlatformType getPlatformType() -
getBootstrap
-
getEventBus
public org.geysermc.geyser.api.event.EventBus<org.geysermc.geyser.api.event.EventRegistrar> getEventBus() -
getExtensionManager
-
getMetrics
-
getPendingMicrosoftAuthentication
-
setShouldStartListener
public static void setShouldStartListener(boolean shouldStartListener)This is used in GeyserConnect to stop the bedrock server binding to a port
-