public class GeyserConnector extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GIT_VERSION |
static com.fasterxml.jackson.databind.ObjectMapper |
JSON_MAPPER |
static String |
NAME |
static String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayer(GeyserSession player) |
CommandManager |
getCommandManager() |
GeyserConfiguration |
getConfig() |
static GeyserConnector |
getInstance() |
GeyserLogger |
getLogger() |
GeyserSession |
getPlayerByUuid(UUID uuid)
Gets a player by their current UUID
|
GeyserSession |
getPlayerByXuid(String xuid)
Gets a player by their Xbox user identifier
|
WorldManager |
getWorldManager() |
void |
reload() |
void |
removePlayer(GeyserSession player) |
void |
shutdown() |
static GeyserConnector |
start(PlatformType platformType,
GeyserBootstrap bootstrap) |
boolean |
useXmlReflections()
Whether to use XML reflections in the jar or manually find the reflections.
|
public static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
public static final String NAME
public static final String GIT_VERSION
public static final String VERSION
public void shutdown()
public void addPlayer(GeyserSession player)
public void removePlayer(GeyserSession player)
public GeyserSession getPlayerByUuid(UUID uuid)
uuid - the uuidnull if there is no player online with this UUIDpublic GeyserSession getPlayerByXuid(String xuid)
xuid - the Xbox user identifiernull if there is no player online with this xuidpublic static GeyserConnector start(PlatformType platformType, GeyserBootstrap bootstrap)
public void reload()
public GeyserLogger getLogger()
public GeyserConfiguration getConfig()
public CommandManager getCommandManager()
public WorldManager getWorldManager()
public boolean useXmlReflections()
public static GeyserConnector getInstance()
Copyright © 2020 GeyserMC. All rights reserved.