Interface WorldData

All Known Implementing Classes:
PrimaryLevelData

public interface WorldData
  • Field Details

  • Method Details

    • getDataConfiguration

      WorldDataConfiguration getDataConfiguration()
    • setDataConfiguration

      void setDataConfiguration(WorldDataConfiguration pDataConfiguration)
    • wasModded

      boolean wasModded()
    • getKnownServerBrands

      Set<String> getKnownServerBrands()
    • getRemovedFeatureFlags

      Set<String> getRemovedFeatureFlags()
    • setModdedInfo

      void setModdedInfo(String pName, boolean pIsModded)
    • fillCrashReportCategory

      default void fillCrashReportCategory(CrashReportCategory pCategory)
    • getStorageVersionName

      default String getStorageVersionName(int pStorageVersionId)
    • getCustomBossEvents

      @Nullable CompoundTag getCustomBossEvents()
    • setCustomBossEvents

      void setCustomBossEvents(@Nullable CompoundTag pNbt)
    • overworldData

      ServerLevelData overworldData()
    • getLevelSettings

      LevelSettings getLevelSettings()
    • createTag

      CompoundTag createTag(RegistryAccess pRegistries, @Nullable CompoundTag pHostPlayerNBT)
    • isHardcore

      boolean isHardcore()
    • getVersion

      int getVersion()
    • getLevelName

      String getLevelName()
    • getGameType

      GameType getGameType()
    • setGameType

      void setGameType(GameType pType)
    • isAllowCommands

      boolean isAllowCommands()
    • getDifficulty

      Difficulty getDifficulty()
    • setDifficulty

      void setDifficulty(Difficulty pDifficulty)
    • isDifficultyLocked

      boolean isDifficultyLocked()
    • setDifficultyLocked

      void setDifficultyLocked(boolean pLocked)
    • getGameRules

      GameRules getGameRules()
    • getLoadedPlayerTag

      @Nullable CompoundTag getLoadedPlayerTag()
    • endDragonFightData

      EndDragonFight.Data endDragonFightData()
    • setEndDragonFightData

      void setEndDragonFightData(EndDragonFight.Data pEndDragonFightData)
    • worldGenOptions

      WorldOptions worldGenOptions()
    • isFlatWorld

      boolean isFlatWorld()
    • isDebugWorld

      boolean isDebugWorld()
    • worldGenSettingsLifecycle

      com.mojang.serialization.Lifecycle worldGenSettingsLifecycle()
    • enabledFeatures

      default FeatureFlagSet enabledFeatures()