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 GameRules
private long
private boolean
private boolean
private boolean
private float
private int
private int
private int
-
Constructor Summary
ConstructorDescriptionClientLevelData(Difficulty p_104843_, boolean p_104844_, boolean p_104845_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillCrashReportCategory(CrashReportCategory p_171690_, LevelHeightAccessor p_171691_)
double
long
long
double
getHorizonHeight(LevelHeightAccessor p_171688_)
float
int
int
int
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
void
setSpawnAngle(float p_104848_)
void
setXSpawn(int p_104862_)
void
setYSpawn(int p_104869_)
void
setZSpawn(int p_104872_)
-
Field Details
-
hardcore
private final boolean hardcore -
gameRules
-
isFlat
private final boolean isFlat -
xSpawn
private int xSpawn -
ySpawn
private int ySpawn -
zSpawn
private int zSpawn -
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
-
getXSpawn
public int getXSpawn() -
getYSpawn
public int getYSpawn() -
getZSpawn
public int getZSpawn() -
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
-
setXSpawn
public void setXSpawn(int p_104862_)- Specified by:
setXSpawn
in interfaceWritableLevelData
-
setYSpawn
public void setYSpawn(int p_104869_)- Specified by:
setYSpawn
in interfaceWritableLevelData
-
setZSpawn
public void setZSpawn(int p_104872_)- Specified by:
setZSpawn
in interfaceWritableLevelData
-
setSpawnAngle
public void setSpawnAngle(float p_104848_)- Specified by:
setSpawnAngle
in interfaceWritableLevelData
-
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 double getClearColorScale()
-