@Environment(value=CLIENT) public static class ClientWorld.Properties extends Object implements MutableWorldProperties
Modifier and Type | Field and Description |
---|---|
private Difficulty |
difficulty |
private boolean |
difficultyLocked |
private boolean |
flatWorld |
private GameRules |
gameRules |
private boolean |
hardcore |
private boolean |
raining |
private float |
spawnAngle |
private int |
spawnX |
private int |
spawnY |
private int |
spawnZ |
private long |
time |
private long |
timeOfDay |
Constructor and Description |
---|
Properties(Difficulty difficulty,
boolean hardcore,
boolean flatWorld) |
Modifier and Type | Method and Description |
---|---|
Difficulty |
getDifficulty() |
GameRules |
getGameRules() |
double |
getHorizonShadingRatio() |
double |
getSkyDarknessHeight() |
float |
getSpawnAngle() |
int |
getSpawnX() |
int |
getSpawnY() |
int |
getSpawnZ() |
long |
getTime() |
long |
getTimeOfDay() |
boolean |
isDifficultyLocked() |
boolean |
isHardcore() |
boolean |
isRaining() |
boolean |
isThundering() |
void |
populateCrashReport(CrashReportSection reportSection) |
void |
setDifficulty(Difficulty difficulty) |
void |
setDifficultyLocked(boolean difficultyLocked) |
void |
setRaining(boolean raining) |
void |
setSpawnAngle(float angle) |
void |
setSpawnPos(BlockPos pos,
float angle) |
void |
setSpawnX(int spawnX) |
void |
setSpawnY(int spawnY) |
void |
setSpawnZ(int spawnZ) |
void |
setTime(long difficulty) |
void |
setTimeOfDay(long time) |
private final boolean hardcore
private final GameRules gameRules
private final boolean flatWorld
private int spawnX
private int spawnY
private int spawnZ
private float spawnAngle
private long time
private long timeOfDay
private boolean raining
private Difficulty difficulty
private boolean difficultyLocked
public Properties(Difficulty difficulty, boolean hardcore, boolean flatWorld)
public int getSpawnX()
getSpawnX
in interface WorldProperties
public int getSpawnY()
getSpawnY
in interface WorldProperties
public int getSpawnZ()
getSpawnZ
in interface WorldProperties
public float getSpawnAngle()
getSpawnAngle
in interface WorldProperties
public long getTime()
getTime
in interface WorldProperties
public long getTimeOfDay()
getTimeOfDay
in interface WorldProperties
public void setSpawnX(int spawnX)
setSpawnX
in interface MutableWorldProperties
public void setSpawnY(int spawnY)
setSpawnY
in interface MutableWorldProperties
public void setSpawnZ(int spawnZ)
setSpawnZ
in interface MutableWorldProperties
public void setSpawnAngle(float angle)
setSpawnAngle
in interface MutableWorldProperties
public void setTime(long difficulty)
public void setTimeOfDay(long time)
public void setSpawnPos(BlockPos pos, float angle)
setSpawnPos
in interface MutableWorldProperties
public boolean isThundering()
isThundering
in interface WorldProperties
public boolean isRaining()
isRaining
in interface WorldProperties
public void setRaining(boolean raining)
setRaining
in interface WorldProperties
public boolean isHardcore()
isHardcore
in interface WorldProperties
public GameRules getGameRules()
getGameRules
in interface WorldProperties
public Difficulty getDifficulty()
getDifficulty
in interface WorldProperties
public boolean isDifficultyLocked()
isDifficultyLocked
in interface WorldProperties
public void populateCrashReport(CrashReportSection reportSection)
populateCrashReport
in interface WorldProperties
public void setDifficulty(Difficulty difficulty)
public void setDifficultyLocked(boolean difficultyLocked)
public double getSkyDarknessHeight()
public double getHorizonShadingRatio()