Package net.minecraft.client.multiplayer
Class ClientLevel.ClientLevelData
java.lang.Object
net.minecraft.client.multiplayer.ClientLevel.ClientLevelData
- All Implemented Interfaces:
LevelData
,WritableLevelData
- Enclosing class:
ClientLevel
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private Difficulty
private boolean
private final GameRules
private long
private final boolean
private final boolean
private boolean
private float
private BlockPos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillCrashReportCategory
(CrashReportCategory p_171690_, LevelHeightAccessor p_171691_) float
long
long
double
getHorizonHeight
(LevelHeightAccessor p_171688_) float
boolean
boolean
boolean
boolean
void
setDayTime
(long p_104864_) void
setDifficulty
(Difficulty p_104852_) void
setDifficultyLocked
(boolean p_104859_) void
setGameTime
(long p_104850_) void
setRaining
(boolean p_104866_) void
-
Field Details
-
hardcore
private final boolean hardcore -
gameRules
-
isFlat
private final boolean isFlat -
spawnPos
-
spawnAngle
private float spawnAngle -
gameTime
private long gameTime -
dayTime
private long dayTime -
raining
private boolean raining -
difficulty
-
difficultyLocked
private boolean difficultyLocked
-
-
Constructor Details
-
ClientLevelData
-
-
Method Details
-
getSpawnPos
- Specified by:
getSpawnPos
in interfaceLevelData
-
getSpawnAngle
public float getSpawnAngle()- Specified by:
getSpawnAngle
in interfaceLevelData
-
getGameTime
public long getGameTime()- Specified by:
getGameTime
in interfaceLevelData
-
getDayTime
public long getDayTime()- Specified by:
getDayTime
in interfaceLevelData
-
setGameTime
public void setGameTime(long p_104850_) -
setDayTime
public void setDayTime(long p_104864_) -
setSpawn
- Specified by:
setSpawn
in interfaceWritableLevelData
-
isThundering
public boolean isThundering()- Specified by:
isThundering
in interfaceLevelData
-
isRaining
public boolean isRaining() -
setRaining
public void setRaining(boolean p_104866_) - Specified by:
setRaining
in interfaceLevelData
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcore
in interfaceLevelData
-
getGameRules
- Specified by:
getGameRules
in interfaceLevelData
-
getDifficulty
- Specified by:
getDifficulty
in interfaceLevelData
-
isDifficultyLocked
public boolean isDifficultyLocked()- Specified by:
isDifficultyLocked
in interfaceLevelData
-
fillCrashReportCategory
- Specified by:
fillCrashReportCategory
in interfaceLevelData
-
setDifficulty
-
setDifficultyLocked
public void setDifficultyLocked(boolean p_104859_) -
getHorizonHeight
-
getClearColorScale
public float getClearColorScale()
-