public class DerivedWorldInfo extends WorldInfo
DEFAULT_DIFFICULTY
コンストラクタと説明 |
---|
DerivedWorldInfo(WorldInfo worldInfoIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addToCrashReport(CrashReportCategory category)
Adds this WorldInfo instance to the crash report.
|
boolean |
areCommandsAllowed()
Returns true if commands are allowed on this World.
|
CompoundNBT |
cloneNBTCompound(CompoundNBT nbt)
Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
|
long |
getDayTime()
Get current world time
|
Difficulty |
getDifficulty() |
CompoundNBT |
getDimensionData(DimensionType dimensionIn) |
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
long |
getGameTime() |
GameType |
getGameType()
Gets the GameType.
|
WorldType |
getGenerator() |
long |
getLastTimePlayed()
Return the last time the player was in this world.
|
CompoundNBT |
getPlayerNBTTagCompound()
Returns the player's NBTTagCompound to be loaded
|
int |
getRainTime()
Return the number of ticks until rain.
|
int |
getSaveVersion()
Returns the save version of this world
|
TimerCallbackManager<MinecraftServer> |
getScheduledEvents() |
long |
getSeed()
Returns the seed of current world.
|
int |
getSpawnX()
Returns the x spawn position
|
int |
getSpawnY()
Return the Y axis spawning point of the player.
|
int |
getSpawnZ()
Returns the z spawn position
|
int |
getThunderTime()
Returns the number of ticks until next thunderbolt.
|
java.lang.String |
getWorldName()
Get current world name
|
boolean |
isDifficultyLocked() |
boolean |
isHardcore()
Returns true if hardcore mode is enabled, otherwise false
|
boolean |
isInitialized()
Returns true if the World is initialized.
|
boolean |
isMapFeaturesEnabled()
Get whether the map features (e.g. strongholds) generation is enabled or disabled.
|
boolean |
isRaining()
Returns true if it is raining, false otherwise.
|
boolean |
isThundering()
Returns true if it is thundering, false otherwise.
|
void |
setAllowCommands(boolean allow) |
void |
setDayTime(long time)
Set current world time
|
void |
setDifficulty(Difficulty newDifficulty) |
void |
setDifficultyLocked(boolean locked) |
void |
setDimensionData(DimensionType dimensionIn,
CompoundNBT compound) |
void |
setGameTime(long time) |
void |
setGenerator(WorldType type) |
void |
setInitialized(boolean initializedIn)
Sets the initialization status of the World.
|
void |
setRaining(boolean isRaining)
Sets whether it is raining or not.
|
void |
setRainTime(int time)
Sets the number of ticks until rain.
|
void |
setSaveVersion(int version)
Sets the save version of the world
|
void |
setSpawn(BlockPos spawnPoint) |
void |
setSpawnX(int x)
Set the x spawn position to the passed in value
|
void |
setSpawnY(int y)
Sets the y spawn position
|
void |
setSpawnZ(int z)
Set the z spawn position to the passed in value
|
void |
setThundering(boolean thunderingIn)
Sets whether it is thundering or not.
|
void |
setThunderTime(int time)
Defines the number of ticks until next thunderbolt.
|
void |
setWorldName(java.lang.String worldName) |
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
public DerivedWorldInfo(WorldInfo worldInfoIn)
public CompoundNBT cloneNBTCompound(@Nullable CompoundNBT nbt)
cloneNBTCompound
クラス内 WorldInfo
public int getSpawnY()
public long getGameTime()
getGameTime
クラス内 WorldInfo
public long getDayTime()
getDayTime
クラス内 WorldInfo
public CompoundNBT getPlayerNBTTagCompound()
getPlayerNBTTagCompound
クラス内 WorldInfo
public java.lang.String getWorldName()
getWorldName
クラス内 WorldInfo
public int getSaveVersion()
getSaveVersion
クラス内 WorldInfo
public long getLastTimePlayed()
getLastTimePlayed
クラス内 WorldInfo
public boolean isThundering()
isThundering
クラス内 WorldInfo
public int getThunderTime()
getThunderTime
クラス内 WorldInfo
public boolean isRaining()
public int getRainTime()
getRainTime
クラス内 WorldInfo
public GameType getGameType()
getGameType
クラス内 WorldInfo
public void setSpawnX(int x)
public void setSpawnZ(int z)
public void setGameTime(long time)
setGameTime
クラス内 WorldInfo
public void setDayTime(long time)
setDayTime
クラス内 WorldInfo
public void setWorldName(java.lang.String worldName)
setWorldName
クラス内 WorldInfo
public void setSaveVersion(int version)
setSaveVersion
クラス内 WorldInfo
public void setThundering(boolean thunderingIn)
setThundering
クラス内 WorldInfo
public void setThunderTime(int time)
setThunderTime
クラス内 WorldInfo
public void setRaining(boolean isRaining)
setRaining
クラス内 WorldInfo
public void setRainTime(int time)
setRainTime
クラス内 WorldInfo
public boolean isMapFeaturesEnabled()
isMapFeaturesEnabled
クラス内 WorldInfo
public boolean isHardcore()
isHardcore
クラス内 WorldInfo
public WorldType getGenerator()
getGenerator
クラス内 WorldInfo
public void setGenerator(WorldType type)
setGenerator
クラス内 WorldInfo
public boolean areCommandsAllowed()
areCommandsAllowed
クラス内 WorldInfo
public void setAllowCommands(boolean allow)
setAllowCommands
クラス内 WorldInfo
public boolean isInitialized()
isInitialized
クラス内 WorldInfo
public void setInitialized(boolean initializedIn)
setInitialized
クラス内 WorldInfo
public GameRules getGameRulesInstance()
getGameRulesInstance
クラス内 WorldInfo
public Difficulty getDifficulty()
getDifficulty
クラス内 WorldInfo
public void setDifficulty(Difficulty newDifficulty)
setDifficulty
クラス内 WorldInfo
public boolean isDifficultyLocked()
isDifficultyLocked
クラス内 WorldInfo
public void setDifficultyLocked(boolean locked)
setDifficultyLocked
クラス内 WorldInfo
public TimerCallbackManager<MinecraftServer> getScheduledEvents()
getScheduledEvents
クラス内 WorldInfo
public void setDimensionData(DimensionType dimensionIn, CompoundNBT compound)
setDimensionData
クラス内 WorldInfo
public CompoundNBT getDimensionData(DimensionType dimensionIn)
getDimensionData
クラス内 WorldInfo
public void addToCrashReport(CrashReportCategory category)
addToCrashReport
クラス内 WorldInfo