接口 WorldData
- 所有已知实现类:
PrimaryLevelData
public interface WorldData
-
字段概要
字段 -
方法概要
修饰符和类型方法说明createTag
(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) default FeatureFlagSet
default void
fillCrashReportCategory
(CrashReportCategory pCategory) boolean
default String
getStorageVersionName
(int pStorageVersionId) int
boolean
boolean
boolean
boolean
void
void
setDataConfiguration
(WorldDataConfiguration pDataConfiguration) void
setDifficulty
(Difficulty pDifficulty) void
setDifficultyLocked
(boolean pLocked) void
setEndDragonFightData
(EndDragonFight.Data pEndDragonFightData) void
setGameType
(GameType pType) void
setModdedInfo
(String pName, boolean pIsModded) boolean
com.mojang.serialization.Lifecycle
-
字段详细资料
-
方法详细资料
-
getDataConfiguration
WorldDataConfiguration getDataConfiguration() -
setDataConfiguration
-
wasModded
boolean wasModded() -
getKnownServerBrands
-
getRemovedFeatureFlags
-
setModdedInfo
-
fillCrashReportCategory
-
getStorageVersionName
-
getCustomBossEvents
-
setCustomBossEvents
-
overworldData
ServerLevelData overworldData() -
getLevelSettings
LevelSettings getLevelSettings() -
createTag
-
isHardcore
boolean isHardcore() -
getVersion
int getVersion() -
getLevelName
String getLevelName() -
getGameType
GameType getGameType() -
setGameType
-
getAllowCommands
boolean getAllowCommands() -
getDifficulty
Difficulty getDifficulty() -
setDifficulty
-
isDifficultyLocked
boolean isDifficultyLocked() -
setDifficultyLocked
void setDifficultyLocked(boolean pLocked) -
getGameRules
GameRules getGameRules() -
getLoadedPlayerTag
-
endDragonFightData
EndDragonFight.Data endDragonFightData() -
setEndDragonFightData
-
worldGenOptions
WorldOptions worldGenOptions() -
isFlatWorld
boolean isFlatWorld() -
isDebugWorld
boolean isDebugWorld() -
worldGenSettingsLifecycle
com.mojang.serialization.Lifecycle worldGenSettingsLifecycle() -
enabledFeatures
-