Class GeyserImpl

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

public class GeyserImpl extends Object implements GeyserApi
  • Field Details

  • Method Details

    • connectionByName

      public @Nullable GeyserSession connectionByName(@NonNull String name)
      Specified by:
      connectionByName in interface GeyserApi
      Specified by:
      connectionByName in interface org.geysermc.api.GeyserApiBase
    • onlineConnections

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

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

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

      public void shutdown()
      Specified by:
      shutdown in interface GeyserApi
    • reload

      public void reload()
      Specified by:
      reload in interface GeyserApi
    • 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:
      productionEnvironment in interface GeyserApi
      Returns:
      true if the version number is not 'DEV'.
    • start

      public static GeyserImpl start(PlatformType platformType, GeyserBootstrap bootstrap)
    • getLogger

      public GeyserLogger getLogger()
    • getConfig

      public GeyserConfiguration getConfig()
    • getCommandManager

      public CommandManager getCommandManager()
    • 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()