public class DerivedWorldInfo extends WorldInfo
Modifier and Type | Field and Description |
---|---|
private WorldInfo |
delegate |
DEFAULT_DIFFICULTY
Constructor and Description |
---|
DerivedWorldInfo(WorldInfo worldInfoIn) |
byHashing, func_230145_a_, getBorderCenterX, getBorderCenterZ, getBorderDamagePerBlock, getBorderSafeZone, getBorderSize, getBorderSizeLerpTarget, getBorderSizeLerpTime, getBorderWarningBlocks, getBorderWarningTime, getClearWeatherTime, getCustomBossEvents, getDisabledDataPacks, getEnabledDataPacks, getGeneratorOptions, getVersionId, getVersionName, getWanderingTraderSpawnChance, getWanderingTraderSpawnDelay, isVersionSnapshot, populateFromWorldSettings, setBorderCenterX, setBorderCenterZ, setBorderDamagePerBlock, setBorderSafeZone, setBorderSize, setBorderSizeLerpTarget, setBorderSizeLerpTime, setBorderWarningBlocks, setBorderWarningTime, setClearWeatherTime, setCustomBossEvents, setGameType, setGeneratorOptions, setHardcore, setMapFeaturesEnabled, setWanderingTraderId, setWanderingTraderSpawnChance, setWanderingTraderSpawnDelay
private final WorldInfo delegate
public DerivedWorldInfo(WorldInfo worldInfoIn)
public CompoundNBT cloneNBTCompound(@Nullable CompoundNBT nbt)
cloneNBTCompound
in class WorldInfo
public long getGameTime()
getGameTime
in class WorldInfo
public long getDayTime()
getDayTime
in class WorldInfo
public CompoundNBT getPlayerNBTTagCompound()
getPlayerNBTTagCompound
in class WorldInfo
public java.lang.String getWorldName()
getWorldName
in class WorldInfo
public int getSaveVersion()
getSaveVersion
in class WorldInfo
public long getLastTimePlayed()
getLastTimePlayed
in class WorldInfo
public boolean isThundering()
isThundering
in class WorldInfo
public int getThunderTime()
getThunderTime
in class WorldInfo
public int getRainTime()
getRainTime
in class WorldInfo
public GameType getGameType()
getGameType
in class WorldInfo
public void setGameTime(long time)
setGameTime
in class WorldInfo
public void setDayTime(long time)
setDayTime
in class WorldInfo
public void setWorldName(java.lang.String worldName)
setWorldName
in class WorldInfo
public void setSaveVersion(int version)
setSaveVersion
in class WorldInfo
public void setThundering(boolean thunderingIn)
setThundering
in class WorldInfo
public void setThunderTime(int time)
setThunderTime
in class WorldInfo
public void setRaining(boolean isRaining)
setRaining
in class WorldInfo
public void setRainTime(int time)
setRainTime
in class WorldInfo
public boolean isMapFeaturesEnabled()
isMapFeaturesEnabled
in class WorldInfo
public boolean isHardcore()
isHardcore
in class WorldInfo
public WorldType getGenerator()
getGenerator
in class WorldInfo
public void setGenerator(WorldType type)
setGenerator
in class WorldInfo
public boolean areCommandsAllowed()
areCommandsAllowed
in class WorldInfo
public void setAllowCommands(boolean allow)
setAllowCommands
in class WorldInfo
public boolean isInitialized()
isInitialized
in class WorldInfo
public void setInitialized(boolean initializedIn)
setInitialized
in class WorldInfo
public GameRules getGameRulesInstance()
getGameRulesInstance
in class WorldInfo
public Difficulty getDifficulty()
getDifficulty
in class WorldInfo
public void setDifficulty(Difficulty newDifficulty)
setDifficulty
in class WorldInfo
public boolean isDifficultyLocked()
isDifficultyLocked
in class WorldInfo
public void setDifficultyLocked(boolean locked)
setDifficultyLocked
in class WorldInfo
public TimerCallbackManager<MinecraftServer> getScheduledEvents()
getScheduledEvents
in class WorldInfo
public void setDimensionData(DimensionType dimensionIn, CompoundNBT compound)
setDimensionData
in class WorldInfo
public CompoundNBT getDimensionData(DimensionType dimensionIn)
getDimensionData
in class WorldInfo
public void addToCrashReport(CrashReportCategory category)
addToCrashReport
in class WorldInfo