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, setWanderingTraderSpawnDelaypublic DerivedWorldInfo(WorldInfo worldInfoIn)
public CompoundNBT cloneNBTCompound(@Nullable CompoundNBT nbt)
cloneNBTCompound クラス内 WorldInfopublic int getSpawnY()
public long getGameTime()
getGameTime クラス内 WorldInfopublic long getDayTime()
getDayTime クラス内 WorldInfopublic CompoundNBT getPlayerNBTTagCompound()
getPlayerNBTTagCompound クラス内 WorldInfopublic java.lang.String getWorldName()
getWorldName クラス内 WorldInfopublic int getSaveVersion()
getSaveVersion クラス内 WorldInfopublic long getLastTimePlayed()
getLastTimePlayed クラス内 WorldInfopublic boolean isThundering()
isThundering クラス内 WorldInfopublic int getThunderTime()
getThunderTime クラス内 WorldInfopublic boolean isRaining()
public int getRainTime()
getRainTime クラス内 WorldInfopublic GameType getGameType()
getGameType クラス内 WorldInfopublic void setSpawnX(int x)
public void setSpawnZ(int z)
public void setGameTime(long time)
setGameTime クラス内 WorldInfopublic void setDayTime(long time)
setDayTime クラス内 WorldInfopublic void setWorldName(java.lang.String worldName)
setWorldName クラス内 WorldInfopublic void setSaveVersion(int version)
setSaveVersion クラス内 WorldInfopublic void setThundering(boolean thunderingIn)
setThundering クラス内 WorldInfopublic void setThunderTime(int time)
setThunderTime クラス内 WorldInfopublic void setRaining(boolean isRaining)
setRaining クラス内 WorldInfopublic void setRainTime(int time)
setRainTime クラス内 WorldInfopublic boolean isMapFeaturesEnabled()
isMapFeaturesEnabled クラス内 WorldInfopublic boolean isHardcore()
isHardcore クラス内 WorldInfopublic WorldType getGenerator()
getGenerator クラス内 WorldInfopublic void setGenerator(WorldType type)
setGenerator クラス内 WorldInfopublic boolean areCommandsAllowed()
areCommandsAllowed クラス内 WorldInfopublic void setAllowCommands(boolean allow)
setAllowCommands クラス内 WorldInfopublic boolean isInitialized()
isInitialized クラス内 WorldInfopublic void setInitialized(boolean initializedIn)
setInitialized クラス内 WorldInfopublic GameRules getGameRulesInstance()
getGameRulesInstance クラス内 WorldInfopublic Difficulty getDifficulty()
getDifficulty クラス内 WorldInfopublic void setDifficulty(Difficulty newDifficulty)
setDifficulty クラス内 WorldInfopublic boolean isDifficultyLocked()
isDifficultyLocked クラス内 WorldInfopublic void setDifficultyLocked(boolean locked)
setDifficultyLocked クラス内 WorldInfopublic TimerCallbackManager<MinecraftServer> getScheduledEvents()
getScheduledEvents クラス内 WorldInfopublic void setDimensionData(DimensionType dimensionIn, CompoundNBT compound)
setDimensionData クラス内 WorldInfopublic CompoundNBT getDimensionData(DimensionType dimensionIn)
getDimensionData クラス内 WorldInfopublic void addToCrashReport(CrashReportCategory category)
addToCrashReport クラス内 WorldInfo