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
FieldsModifier and TypeFieldDescriptionprivate longprivate Difficultyprivate booleanprivate longprivate final booleanprivate final booleanprivate booleanprivate floatprivate BlockPos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillCrashReportCategory(CrashReportCategory pCrashReportCategory, LevelHeightAccessor pLevel) longlongdoublegetHorizonHeight(LevelHeightAccessor pLevel) floatbooleanbooleanbooleanbooleanvoidsetDayTime(long pDayTime) voidsetDifficulty(Difficulty pDifficulty) voidsetDifficultyLocked(boolean pDifficultyLocked) voidsetGameTime(long pGameTime) voidsetRaining(boolean pIsRaining) Sets whether it is raining or not.voidfloat
-
Field Details
-
hardcore
private final boolean hardcore -
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:
getSpawnPosin interfaceLevelData
-
getSpawnAngle
public float getSpawnAngle()- Specified by:
getSpawnAnglein interfaceLevelData
-
getGameTime
public long getGameTime()- Specified by:
getGameTimein interfaceLevelData
-
getDayTime
public long getDayTime()- Specified by:
getDayTimein interfaceLevelData
-
setGameTime
public void setGameTime(long pGameTime) -
setDayTime
public void setDayTime(long pDayTime) -
setSpawn
- Specified by:
setSpawnin interfaceWritableLevelData
-
isThundering
public boolean isThundering()- Specified by:
isThunderingin interfaceLevelData
-
isRaining
public boolean isRaining() -
setRaining
public void setRaining(boolean pIsRaining) Sets whether it is raining or not.- Specified by:
setRainingin interfaceLevelData
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcorein interfaceLevelData
-
getDifficulty
- Specified by:
getDifficultyin interfaceLevelData
-
isDifficultyLocked
public boolean isDifficultyLocked()- Specified by:
isDifficultyLockedin interfaceLevelData
-
fillCrashReportCategory
public void fillCrashReportCategory(CrashReportCategory pCrashReportCategory, LevelHeightAccessor pLevel) - Specified by:
fillCrashReportCategoryin interfaceLevelData
-
setDifficulty
-
setDifficultyLocked
public void setDifficultyLocked(boolean pDifficultyLocked) -
getHorizonHeight
-
voidDarknessOnsetRange
public float voidDarknessOnsetRange()
-