Package org.cloudburstmc.server.config
Class ServerConfig
java.lang.Object
org.cloudburstmc.server.config.ServerConfig
the universal public facing facade for the server's config
so you dont have to care about where the config actually lies
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDebug()org.cloudburstmc.api.level.Difficultyorg.cloudburstmc.api.player.GameModeintgetMotd()intintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisPVP()booleanbooleanbooleanbooleanvoidsetDefaultLevel(String name)voidsetDifficulty(org.cloudburstmc.api.level.Difficulty difficulty)voidsetGamemode(org.cloudburstmc.api.player.GameMode gameMode)voidsetWhitelist(boolean b)
-
Constructor Details
-
ServerConfig
-
-
Method Details
-
getMotd
-
getServerPort
public int getServerPort() -
getSubMotd
-
getServerIp
-
getViewDistance
public int getViewDistance() -
isAchievements
public boolean isAchievements() -
isAnnouncePlayerAchievements
public boolean isAnnouncePlayerAchievements() -
getMaxPlayers
public int getMaxPlayers() -
isHardcore
public boolean isHardcore() -
isSpawnAnimals
public boolean isSpawnAnimals() -
isSpawnMobs
public boolean isSpawnMobs() -
isAllowFlight
public boolean isAllowFlight() -
setWhitelist
public void setWhitelist(boolean b) -
setDefaultLevel
-
getDefaultLevel
-
isWhiteList
public boolean isWhiteList() -
getSpawnProtection
public int getSpawnProtection() -
isForceGamemode
public boolean isForceGamemode() -
isPVP
public boolean isPVP() -
isGenerateStructures
public boolean isGenerateStructures() -
isAllowNether
public boolean isAllowNether() -
isEnableQuery
public boolean isEnableQuery() -
isAutoSave
public boolean isAutoSave() -
isForceResources
public boolean isForceResources() -
isXboxAuth
public boolean isXboxAuth() -
getGamemode
public org.cloudburstmc.api.player.GameMode getGamemode() -
setGamemode
public void setGamemode(org.cloudburstmc.api.player.GameMode gameMode) -
getDifficulty
public org.cloudburstmc.api.level.Difficulty getDifficulty() -
setDifficulty
public void setDifficulty(org.cloudburstmc.api.level.Difficulty difficulty) -
getCommandAliases
-
getTimings
-
getSettings
-
getNetwork
-
getLevelSettings
-
getChunkSending
-
getChunkTicking
-
getChunkGeneration
-
getPlayer
-
getWorlds
-
getSpawnLimits
-
getTicksPer
-
getDebug
-
getServerProperties
-
getCloudburstYaml
-