Package net.minecraft.client.world
Class ClientWorld.Properties
java.lang.Object
net.minecraft.client.world.ClientWorld.Properties
- All Implemented Interfaces:
MutableWorldProperties
,WorldProperties
- Enclosing class:
- ClientWorld
@Environment(CLIENT) public static class ClientWorld.Properties extends Object implements MutableWorldProperties
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Properties(Difficulty difficulty, boolean hardcore, boolean flatWorld)
-
Method Summary
Modifier and Type Method 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, HeightLimitView heightLimitView)
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)
-
Field Details
-
hardcore
private final boolean hardcore -
gameRules
-
flatWorld
private final boolean flatWorld -
spawnX
private int spawnX -
spawnY
private int spawnY -
spawnZ
private int spawnZ -
spawnAngle
private float spawnAngle -
time
private long time -
timeOfDay
private long timeOfDay -
raining
private boolean raining -
difficulty
-
difficultyLocked
private boolean difficultyLocked
-
-
Constructor Details
-
Properties
-
-
Method Details
-
getSpawnX
public int getSpawnX()- Specified by:
getSpawnX
in interfaceWorldProperties
-
getSpawnY
public int getSpawnY()- Specified by:
getSpawnY
in interfaceWorldProperties
-
getSpawnZ
public int getSpawnZ()- Specified by:
getSpawnZ
in interfaceWorldProperties
-
getSpawnAngle
public float getSpawnAngle()- Specified by:
getSpawnAngle
in interfaceWorldProperties
-
getTime
public long getTime()- Specified by:
getTime
in interfaceWorldProperties
-
getTimeOfDay
public long getTimeOfDay()- Specified by:
getTimeOfDay
in interfaceWorldProperties
-
setSpawnX
public void setSpawnX(int spawnX)- Specified by:
setSpawnX
in interfaceMutableWorldProperties
-
setSpawnY
public void setSpawnY(int spawnY)- Specified by:
setSpawnY
in interfaceMutableWorldProperties
-
setSpawnZ
public void setSpawnZ(int spawnZ)- Specified by:
setSpawnZ
in interfaceMutableWorldProperties
-
setSpawnAngle
public void setSpawnAngle(float angle)- Specified by:
setSpawnAngle
in interfaceMutableWorldProperties
-
setTime
public void setTime(long difficulty) -
setTimeOfDay
public void setTimeOfDay(long time) -
setSpawnPos
- Specified by:
setSpawnPos
in interfaceMutableWorldProperties
-
isThundering
public boolean isThundering()- Specified by:
isThundering
in interfaceWorldProperties
-
isRaining
public boolean isRaining()- Specified by:
isRaining
in interfaceWorldProperties
-
setRaining
public void setRaining(boolean raining)- Specified by:
setRaining
in interfaceWorldProperties
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcore
in interfaceWorldProperties
-
getGameRules
- Specified by:
getGameRules
in interfaceWorldProperties
-
getDifficulty
- Specified by:
getDifficulty
in interfaceWorldProperties
-
isDifficultyLocked
public boolean isDifficultyLocked()- Specified by:
isDifficultyLocked
in interfaceWorldProperties
-
populateCrashReport
- Specified by:
populateCrashReport
in interfaceWorldProperties
-
setDifficulty
-
setDifficultyLocked
public void setDifficultyLocked(boolean difficultyLocked) -
getSkyDarknessHeight
public double getSkyDarknessHeight() -
getHorizonShadingRatio
public double getHorizonShadingRatio()
-