Package com.loohp.limbo
Class Limbo
java.lang.Object
com.loohp.limbo.Limbo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AtomicInteger
static final String
static String
static final int
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildLegacyPingResponse
(String version, net.kyori.adventure.text.Component motd, int maxPlayers, int playersOnline) buildServerListResponseJson
(String version, int protocol, net.kyori.adventure.text.Component motd, int maxPlayers, int playersOnline, BufferedImage favicon) createBossBar
(net.kyori.adventure.key.Key key, net.kyori.adventure.text.Component name, float progress, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, net.kyori.adventure.bossbar.BossBar.Flag... flags) createInventory
(InventoryType type, InventoryHolder holder) createInventory
(net.kyori.adventure.text.Component title, int slots, InventoryHolder holder) createInventory
(net.kyori.adventure.text.Component title, InventoryType type, InventoryHolder holder) void
dispatchCommand
(CommandSender sender, String str) void
dispatchCommand
(CommandSender sender, String... args) cc.carm.lib.configuration.source.ConfigurationHolder<?>
Map<net.kyori.adventure.key.Key,
KeyedBossBar> cc.carm.lib.configuration.source.ConfigurationHolder<?>
static Limbo
cc.carm.lib.configuration.source.ConfigurationHolder<?>
int
int
Deprecated.boolean
boolean
static void
void
registerWorld
(World world) void
void
removeBossBar
(net.kyori.adventure.key.Key key) void
setOnlineMode
(boolean onlineMode) void
setServerHost
(String serverHost) void
setServerPort
(int serverPort) void
void
unregisterWorld
(World world)
-
Field Details
-
LIMBO_BRAND
- See Also:
-
SERVER_IMPLEMENTATION_VERSION
- See Also:
-
SERVER_IMPLEMENTATION_PROTOCOL
public static final int SERVER_IMPLEMENTATION_PROTOCOL- See Also:
-
LIMBO_IMPLEMENTATION_VERSION
-
entityIdCount
-
-
Constructor Details
-
Limbo
public Limbo() throws IOException, org.json.simple.parser.ParseException, NumberFormatException, ClassNotFoundException, InterruptedException- Throws:
IOException
org.json.simple.parser.ParseException
NumberFormatException
ClassNotFoundException
InterruptedException
-
-
Method Details
-
main
public static void main(String[] args) throws IOException, org.json.simple.parser.ParseException, NumberFormatException, ClassNotFoundException, InterruptedException - Throws:
IOException
org.json.simple.parser.ParseException
NumberFormatException
ClassNotFoundException
InterruptedException
-
getInstance
-
reloadConfig
public void reloadConfig() -
getConfigHolder
public cc.carm.lib.configuration.source.ConfigurationHolder<?> getConfigHolder() -
getMessageHolder
public cc.carm.lib.configuration.source.ConfigurationHolder<?> getMessageHolder() -
getAllowlistHolder
public cc.carm.lib.configuration.source.ConfigurationHolder<?> getAllowlistHolder() -
getUnsafe
Deprecated. -
getHeartBeat
-
getScheduler
-
getPermissionsManager
-
getEventsManager
-
getPluginFolder
-
getPluginManager
-
registerWorld
-
unregisterWorld
-
createBossBar
public KeyedBossBar createBossBar(net.kyori.adventure.key.Key key, net.kyori.adventure.text.Component name, float progress, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, net.kyori.adventure.bossbar.BossBar.Flag... flags) -
removeBossBar
public void removeBossBar(net.kyori.adventure.key.Key key) -
getBossBars
-
getServerConnection
-
getConsole
-
getMetrics
-
getPlayers
-
getPlayer
-
getPlayer
-
getWorlds
-
getWorld
-
buildServerListResponseJson
public String buildServerListResponseJson(String version, int protocol, net.kyori.adventure.text.Component motd, int maxPlayers, int playersOnline, BufferedImage favicon) throws IOException - Throws:
IOException
-
buildLegacyPingResponse
-
stopServer
public void stopServer() -
isRunning
public boolean isRunning() -
getNextEntityId
public int getNextEntityId() -
dispatchCommand
-
dispatchCommand
-
createInventory
public Inventory createInventory(net.kyori.adventure.text.Component title, int slots, InventoryHolder holder) -
createInventory
-
createInventory
public Inventory createInventory(net.kyori.adventure.text.Component title, InventoryType type, InventoryHolder holder) -
getServerHost
-
setServerHost
-
getServerPort
public int getServerPort() -
setServerPort
public void setServerPort(int serverPort) -
isOnlineMode
public boolean isOnlineMode() -
setOnlineMode
public void setOnlineMode(boolean onlineMode)
-