Contents
Class HytaleServerConfig.Defaults
java.lang.Object
com.hypixel.hytale.server.core.HytaleServerConfig.Defaults
- Enclosing class:
HytaleServerConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<HytaleServerConfig.Defaults> static final KeyedCodec<CrashRecoveryConfig> static final KeyedCodec<String> static final KeyedCodec<GameMode> static final KeyedCodec<Integer> static final KeyedCodec<String> static final KeyedCodec<String> -
Method Summary
Modifier and TypeMethodDescriptionintgetWorld()voidsetGameMode(GameMode gameMode) voidsetGameModeTypeOnDeath(String gameModeTypeOnDeath) void
-
Field Details
-
WORLD
-
GAMEMODE
-
GAME_MODE_TYPE_ON_DEATH
-
HARDCORE_MODE
-
HARDCORE_LIVES
-
CRASH_RECOVERY
-
CODEC
-
-
Method Details
-
getWorld
-
setWorld
-
getGameMode
-
setGameMode
-
getGameModeTypeOnDeath
- Returns:
- the
GameModeTypeasset id entered on death in worlds whose death config does not set one, ornullfor the normal respawn flow.
-
setGameModeTypeOnDeath
- Parameters:
gameModeTypeOnDeath- theGameModeTypeasset id to enter on death, ornullto restore the normal respawn flow.
-
getHardcoreMode
- Returns:
- the hardcore mode of the universe,
HardcoreMode.Nonewhen the config sets none.
-
getHardcoreLives
public int getHardcoreLives()- Returns:
- the number of lives for the hardcore mode: the per-player count for
HardcoreMode.PerPlayeror the shared pool size forHardcoreMode.Global, one life when the config sets no count, and0forHardcoreMode.None.
-
getCrashRecovery
- Returns:
- the recovery policy for the default world when its thread crashes.
-