Class GeyserImpl

java.lang.Object
org.geysermc.geyser.GeyserImpl
All Implemented Interfaces:
org.geysermc.api.GeyserApiBase, org.geysermc.geyser.api.GeyserApi

public class GeyserImpl extends Object implements org.geysermc.geyser.api.GeyserApi
  • Field Details

  • Method Details

    • initialize

      public void initialize()
    • onlineConnections

      public @NonNull List<GeyserSession> onlineConnections()
      Specified by:
      onlineConnections in interface org.geysermc.geyser.api.GeyserApi
      Specified by:
      onlineConnections in interface org.geysermc.api.GeyserApiBase
    • onlineConnectionsCount

      public int onlineConnectionsCount()
      Specified by:
      onlineConnectionsCount in interface org.geysermc.api.GeyserApiBase
    • usernamePrefix

      public @MonotonicNonNull String usernamePrefix()
      Specified by:
      usernamePrefix in interface org.geysermc.api.GeyserApiBase
    • connectionByUuid

      public @Nullable GeyserSession connectionByUuid(@NonNull UUID uuid)
      Specified by:
      connectionByUuid in interface org.geysermc.geyser.api.GeyserApi
      Specified by:
      connectionByUuid in interface org.geysermc.api.GeyserApiBase
    • connectionByXuid

      public @Nullable GeyserSession connectionByXuid(@NonNull String xuid)
      Specified by:
      connectionByXuid in interface org.geysermc.geyser.api.GeyserApi
      Specified by:
      connectionByXuid in interface org.geysermc.api.GeyserApiBase
    • isBedrockPlayer

      public boolean isBedrockPlayer(@NonNull UUID uuid)
      Specified by:
      isBedrockPlayer in interface org.geysermc.api.GeyserApiBase
    • sendForm

      public boolean sendForm(@NonNull UUID uuid, @NonNull org.geysermc.cumulus.form.Form form)
      Specified by:
      sendForm in interface org.geysermc.api.GeyserApiBase
    • sendForm

      public boolean sendForm(@NonNull UUID uuid, @NonNull org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder)
      Specified by:
      sendForm in interface org.geysermc.api.GeyserApiBase
    • transfer

      public boolean transfer(@NonNull UUID uuid, @NonNull String address, int port)
      Specified by:
      transfer in interface org.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

      public @NonNull GeyserExtensionManager extensionManager()
      Specified by:
      extensionManager in interface org.geysermc.geyser.api.GeyserApi
    • commandManager

      public @NonNull GeyserCommandManager commandManager()
    • provider

      public <R extends T, T> @NonNull R provider(@NonNull Class<T> apiClass, @Nullable Object... args)
      Specified by:
      provider in interface org.geysermc.geyser.api.GeyserApi
    • eventBus

      public @NonNull org.geysermc.geyser.api.event.EventBus<org.geysermc.geyser.api.event.EventRegistrar> eventBus()
      Specified by:
      eventBus in interface org.geysermc.geyser.api.GeyserApi
    • defaultRemoteServer

      public @NonNull org.geysermc.geyser.api.network.RemoteServer defaultRemoteServer()
      Specified by:
      defaultRemoteServer in interface org.geysermc.geyser.api.GeyserApi
    • bedrockListener

      public @NonNull org.geysermc.geyser.api.network.BedrockListener bedrockListener()
      Specified by:
      bedrockListener in interface org.geysermc.geyser.api.GeyserApi
    • configDirectory

      public @NonNull Path configDirectory()
      Specified by:
      configDirectory in interface org.geysermc.geyser.api.GeyserApi
    • packDirectory

      public @NonNull Path packDirectory()
      Specified by:
      packDirectory in interface org.geysermc.geyser.api.GeyserApi
    • platformType

      public @NonNull org.geysermc.geyser.api.util.PlatformType platformType()
      Specified by:
      platformType in interface org.geysermc.geyser.api.GeyserApi
    • supportedJavaVersion

      public @NonNull org.geysermc.geyser.api.util.MinecraftVersion supportedJavaVersion()
      Specified by:
      supportedJavaVersion in interface org.geysermc.geyser.api.GeyserApi
    • supportedBedrockVersions

      public @NonNull List<org.geysermc.geyser.api.util.MinecraftVersion> supportedBedrockVersions()
      Specified by:
      supportedBedrockVersions in interface org.geysermc.geyser.api.GeyserApi
    • consoleCommandSource

      public @NonNull org.geysermc.geyser.api.command.CommandSource consoleCommandSource()
      Specified by:
      consoleCommandSource in interface org.geysermc.geyser.api.GeyserApi
    • buildNumber

      public int buildNumber()
    • load

      public static GeyserImpl load(org.geysermc.geyser.api.util.PlatformType platformType, GeyserBootstrap bootstrap)
    • start

      public static void start()
    • getLogger

      public GeyserLogger getLogger()
    • getConfig

      public GeyserConfiguration getConfig()
    • getWorldManager

      public WorldManager getWorldManager()
    • refreshTokenFor

      public @Nullable String refreshTokenFor(@NonNull String bedrockName)
    • saveRefreshToken

      public void saveRefreshToken(@NonNull String bedrockName, @NonNull String refreshToken)
    • getInstance

      public static GeyserImpl getInstance()
    • getSessionManager

      public SessionManager getSessionManager()
    • getCipher

      public org.geysermc.floodgate.crypto.FloodgateCipher getCipher()
    • getSkinUploader

      public FloodgateSkinUploader getSkinUploader()
    • getNewsHandler

      public NewsHandler getNewsHandler()
    • getErosionUnixListener

      public UnixSocketClientListener getErosionUnixListener()
    • isShuttingDown

      public boolean isShuttingDown()
    • getScheduledThread

      public ScheduledExecutorService getScheduledThread()
    • getGeyserServer

      public GeyserServer getGeyserServer()
    • getPlatformType

      public org.geysermc.geyser.api.util.PlatformType getPlatformType()
    • getBootstrap

      public GeyserBootstrap getBootstrap()
    • getEventBus

      public org.geysermc.geyser.api.event.EventBus<org.geysermc.geyser.api.event.EventRegistrar> getEventBus()
    • getExtensionManager

      public GeyserExtensionManager getExtensionManager()
    • getMetrics

      public Metrics getMetrics()
    • getPendingMicrosoftAuthentication

      public PendingMicrosoftAuthentication getPendingMicrosoftAuthentication()
    • setShouldStartListener

      public static void setShouldStartListener(boolean shouldStartListener)
      This is used in GeyserConnect to stop the bedrock server binding to a port