public class WorldInfo
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static Difficulty |
DEFAULT_DIFFICULTY |
修飾子 | コンストラクタと説明 |
---|---|
protected |
WorldInfo() |
|
WorldInfo(CompoundNBT nbt,
com.mojang.datafixers.DataFixer dataFixer,
int dataVersionIn,
CompoundNBT playerDataIn) |
|
WorldInfo(WorldSettings settings,
java.lang.String name) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addToCrashReport(CrashReportCategory category)
Adds this WorldInfo instance to the crash report.
|
boolean |
areCommandsAllowed()
Returns true if commands are allowed on this World.
|
static long |
byHashing(long p_227498_0_) |
CompoundNBT |
cloneNBTCompound(CompoundNBT nbt)
Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
|
void |
func_230145_a_(java.lang.String p_230145_1_,
boolean p_230145_2_) |
double |
getBorderCenterX()
Returns the border center X position
|
double |
getBorderCenterZ()
Returns the border center Z position
|
double |
getBorderDamagePerBlock()
Returns the border damage per block
|
double |
getBorderSafeZone()
Returns the border safe zone
|
double |
getBorderSize() |
double |
getBorderSizeLerpTarget()
Returns the border lerp target
|
long |
getBorderSizeLerpTime()
Returns the border lerp time
|
int |
getBorderWarningBlocks()
Returns the border warning distance
|
int |
getBorderWarningTime()
Returns the border warning time
|
int |
getClearWeatherTime() |
CompoundNBT |
getCustomBossEvents() |
long |
getDayTime()
Get current world time
|
Difficulty |
getDifficulty() |
CompoundNBT |
getDimensionData(DimensionType dimensionIn) |
java.util.Set<java.lang.String> |
getDisabledDataPacks() |
java.util.Set<java.lang.String> |
getEnabledDataPacks() |
GameRules |
getGameRulesInstance()
Gets the GameRules class Instance.
|
long |
getGameTime() |
GameType |
getGameType()
Gets the GameType.
|
WorldType |
getGenerator() |
CompoundNBT |
getGeneratorOptions() |
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.
|
int |
getVersionId() |
java.lang.String |
getVersionName() |
int |
getWanderingTraderSpawnChance() |
int |
getWanderingTraderSpawnDelay() |
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.
|
boolean |
isVersionSnapshot() |
void |
populateFromWorldSettings(WorldSettings settings) |
void |
setAllowCommands(boolean allow) |
void |
setBorderCenterX(double posX)
Sets the border center X position
|
void |
setBorderCenterZ(double posZ)
Sets the border center Z position
|
void |
setBorderDamagePerBlock(double damage)
Sets the border damage per block
|
void |
setBorderSafeZone(double amount)
Sets the border safe zone
|
void |
setBorderSize(double size)
Sets the border size
|
void |
setBorderSizeLerpTarget(double lerpSize)
Sets the border lerp target
|
void |
setBorderSizeLerpTime(long time)
Sets the border lerp time
|
void |
setBorderWarningBlocks(int amountOfBlocks)
Sets the border warning distance
|
void |
setBorderWarningTime(int ticks)
Sets the border warning time
|
void |
setClearWeatherTime(int cleanWeatherTimeIn) |
void |
setCustomBossEvents(CompoundNBT p_201356_1_) |
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 |
setGameType(GameType type)
Sets the GameType.
|
void |
setGenerator(WorldType type) |
void |
setGeneratorOptions(CompoundNBT p_212242_1_) |
void |
setHardcore(boolean hardcoreIn) |
void |
setInitialized(boolean initializedIn)
Sets the initialization status of the World.
|
void |
setMapFeaturesEnabled(boolean enabled) |
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 |
setWanderingTraderId(java.util.UUID p_215761_1_) |
void |
setWanderingTraderSpawnChance(int p_215762_1_) |
void |
setWanderingTraderSpawnDelay(int p_215764_1_) |
void |
setWorldName(java.lang.String worldName) |
public static final Difficulty DEFAULT_DIFFICULTY
protected WorldInfo()
public WorldInfo(CompoundNBT nbt, com.mojang.datafixers.DataFixer dataFixer, int dataVersionIn, @Nullable CompoundNBT playerDataIn)
public WorldInfo(WorldSettings settings, java.lang.String name)
public void populateFromWorldSettings(WorldSettings settings)
public CompoundNBT cloneNBTCompound(@Nullable CompoundNBT nbt)
public long getSeed()
public static long byHashing(long p_227498_0_)
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getGameTime()
public long getDayTime()
public CompoundNBT getPlayerNBTTagCompound()
public void setSpawnX(int x)
public void setSpawnY(int y)
public void setSpawnZ(int z)
public void setGameTime(long time)
public void setDayTime(long time)
public void setSpawn(BlockPos spawnPoint)
public java.lang.String getWorldName()
public void setWorldName(java.lang.String worldName)
public int getSaveVersion()
public void setSaveVersion(int version)
public long getLastTimePlayed()
public int getClearWeatherTime()
public void setClearWeatherTime(int cleanWeatherTimeIn)
public boolean isThundering()
public void setThundering(boolean thunderingIn)
public int getThunderTime()
public void setThunderTime(int time)
public boolean isRaining()
public void setRaining(boolean isRaining)
public int getRainTime()
public void setRainTime(int time)
public GameType getGameType()
public boolean isMapFeaturesEnabled()
public void setMapFeaturesEnabled(boolean enabled)
public void setGameType(GameType type)
public boolean isHardcore()
public void setHardcore(boolean hardcoreIn)
public WorldType getGenerator()
public void setGenerator(WorldType type)
public CompoundNBT getGeneratorOptions()
public void setGeneratorOptions(CompoundNBT p_212242_1_)
public boolean areCommandsAllowed()
public void setAllowCommands(boolean allow)
public boolean isInitialized()
public void setInitialized(boolean initializedIn)
public GameRules getGameRulesInstance()
public double getBorderCenterX()
public double getBorderCenterZ()
public double getBorderSize()
public void setBorderSize(double size)
public long getBorderSizeLerpTime()
public void setBorderSizeLerpTime(long time)
public double getBorderSizeLerpTarget()
public void setBorderSizeLerpTarget(double lerpSize)
public void setBorderCenterZ(double posZ)
public void setBorderCenterX(double posX)
public double getBorderSafeZone()
public void setBorderSafeZone(double amount)
public double getBorderDamagePerBlock()
public void setBorderDamagePerBlock(double damage)
public int getBorderWarningBlocks()
public int getBorderWarningTime()
public void setBorderWarningBlocks(int amountOfBlocks)
public void setBorderWarningTime(int ticks)
public Difficulty getDifficulty()
public void setDifficulty(Difficulty newDifficulty)
public boolean isDifficultyLocked()
public void setDifficultyLocked(boolean locked)
public TimerCallbackManager<MinecraftServer> getScheduledEvents()
public void addToCrashReport(CrashReportCategory category)
public CompoundNBT getDimensionData(DimensionType dimensionIn)
public void setDimensionData(DimensionType dimensionIn, CompoundNBT compound)
public int getVersionId()
public boolean isVersionSnapshot()
public java.lang.String getVersionName()
public java.util.Set<java.lang.String> getDisabledDataPacks()
public java.util.Set<java.lang.String> getEnabledDataPacks()
@Nullable public CompoundNBT getCustomBossEvents()
public void setCustomBossEvents(@Nullable CompoundNBT p_201356_1_)
public int getWanderingTraderSpawnDelay()
public void setWanderingTraderSpawnDelay(int p_215764_1_)
public int getWanderingTraderSpawnChance()
public void setWanderingTraderSpawnChance(int p_215762_1_)
public void setWanderingTraderId(java.util.UUID p_215761_1_)
public void func_230145_a_(java.lang.String p_230145_1_, boolean p_230145_2_)