Interface WorldData
- All Known Implementing Classes:
PrimaryLevelData
public interface WorldData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptiondefault FeatureFlagSetdefault voidfillCrashReportCategory(CrashReportCategory category) @Nullable UUIDdefault StringgetStorageVersionName(int version) intbooleanbooleanbooleanbooleanbooleanvoidsetDataConfiguration(WorldDataConfiguration dataConfiguration) voidsetDifficulty(Difficulty difficulty) voidsetDifficultyLocked(boolean difficultyLocked) voidsetGameType(GameType gameType) voidsetModdedInfo(String serverBrand, boolean isModded) booleancom.mojang.serialization.Lifecycle
-
Field Details
-
ANVIL_VERSION_ID
static final int ANVIL_VERSION_ID- See Also:
-
MCREGION_VERSION_ID
static final int MCREGION_VERSION_ID- See Also:
-
-
Method Details
-
getDataConfiguration
WorldDataConfiguration getDataConfiguration() -
setDataConfiguration
-
wasModded
boolean wasModded() -
getKnownServerBrands
-
getRemovedFeatureFlags
-
setModdedInfo
-
fillCrashReportCategory
-
getStorageVersionName
-
overworldData
ServerLevelData overworldData() -
getLevelSettings
LevelSettings getLevelSettings() -
createTag
-
isHardcore
boolean isHardcore() -
getVersion
int getVersion() -
getLevelName
String getLevelName() -
getGameType
GameType getGameType() -
setGameType
-
isAllowCommands
boolean isAllowCommands() -
getDifficulty
Difficulty getDifficulty() -
setDifficulty
-
isDifficultyLocked
boolean isDifficultyLocked() -
setDifficultyLocked
void setDifficultyLocked(boolean difficultyLocked) -
getSinglePlayerUUID
@Nullable UUID getSinglePlayerUUID() -
isFlatWorld
boolean isFlatWorld() -
isDebugWorld
boolean isDebugWorld() -
worldGenSettingsLifecycle
com.mojang.serialization.Lifecycle worldGenSettingsLifecycle() -
enabledFeatures
-