Package net.minecraft.client.world
Class ClientWorld.ClientWorldInfo
- java.lang.Object
-
- net.minecraft.client.world.ClientWorld.ClientWorldInfo
-
- All Implemented Interfaces:
ISpawnWorldInfo
,IWorldInfo
- Enclosing class:
- ClientWorld
public static class ClientWorld.ClientWorldInfo extends java.lang.Object implements ISpawnWorldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private long
dayTime
private Difficulty
difficulty
private boolean
difficultyLocked
private GameRules
gameRules
private long
gameTime
private boolean
hardcore
private boolean
isFlat
private boolean
raining
private float
spawnAngle
private int
xSpawn
private int
ySpawn
private int
zSpawn
-
Constructor Summary
Constructors Constructor Description ClientWorldInfo(Difficulty p_i232338_1_, boolean p_i232338_2_, boolean p_i232338_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillCrashReportCategory(CrashReportCategory p_85118_1_)
double
getClearColorScale()
long
getDayTime()
Difficulty
getDifficulty()
GameRules
getGameRules()
long
getGameTime()
double
getHorizonHeight()
float
getSpawnAngle()
int
getXSpawn()
int
getYSpawn()
int
getZSpawn()
boolean
isDifficultyLocked()
boolean
isHardcore()
boolean
isRaining()
boolean
isThundering()
void
setDayTime(long p_239158_1_)
void
setDifficulty(Difficulty p_239156_1_)
void
setDifficultyLocked(boolean p_239157_1_)
void
setGameTime(long p_239155_1_)
void
setRaining(boolean p_76084_1_)
void
setSpawn(BlockPos p_176143_1_, float p_176143_2_)
void
setSpawnAngle(float p_241859_1_)
void
setXSpawn(int p_76058_1_)
void
setYSpawn(int p_76056_1_)
void
setZSpawn(int p_76087_1_)
-
-
-
Field Detail
-
hardcore
private final boolean hardcore
-
gameRules
private final GameRules 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
private Difficulty difficulty
-
difficultyLocked
private boolean difficultyLocked
-
-
Constructor Detail
-
ClientWorldInfo
public ClientWorldInfo(Difficulty p_i232338_1_, boolean p_i232338_2_, boolean p_i232338_3_)
-
-
Method Detail
-
getXSpawn
public int getXSpawn()
- Specified by:
getXSpawn
in interfaceIWorldInfo
-
getYSpawn
public int getYSpawn()
- Specified by:
getYSpawn
in interfaceIWorldInfo
-
getZSpawn
public int getZSpawn()
- Specified by:
getZSpawn
in interfaceIWorldInfo
-
getSpawnAngle
public float getSpawnAngle()
- Specified by:
getSpawnAngle
in interfaceIWorldInfo
-
getGameTime
public long getGameTime()
- Specified by:
getGameTime
in interfaceIWorldInfo
-
getDayTime
public long getDayTime()
- Specified by:
getDayTime
in interfaceIWorldInfo
-
setXSpawn
public void setXSpawn(int p_76058_1_)
- Specified by:
setXSpawn
in interfaceISpawnWorldInfo
-
setYSpawn
public void setYSpawn(int p_76056_1_)
- Specified by:
setYSpawn
in interfaceISpawnWorldInfo
-
setZSpawn
public void setZSpawn(int p_76087_1_)
- Specified by:
setZSpawn
in interfaceISpawnWorldInfo
-
setSpawnAngle
public void setSpawnAngle(float p_241859_1_)
- Specified by:
setSpawnAngle
in interfaceISpawnWorldInfo
-
setGameTime
public void setGameTime(long p_239155_1_)
-
setDayTime
public void setDayTime(long p_239158_1_)
-
setSpawn
public void setSpawn(BlockPos p_176143_1_, float p_176143_2_)
- Specified by:
setSpawn
in interfaceISpawnWorldInfo
-
isThundering
public boolean isThundering()
- Specified by:
isThundering
in interfaceIWorldInfo
-
isRaining
public boolean isRaining()
- Specified by:
isRaining
in interfaceIWorldInfo
-
setRaining
public void setRaining(boolean p_76084_1_)
- Specified by:
setRaining
in interfaceIWorldInfo
-
isHardcore
public boolean isHardcore()
- Specified by:
isHardcore
in interfaceIWorldInfo
-
getGameRules
public GameRules getGameRules()
- Specified by:
getGameRules
in interfaceIWorldInfo
-
getDifficulty
public Difficulty getDifficulty()
- Specified by:
getDifficulty
in interfaceIWorldInfo
-
isDifficultyLocked
public boolean isDifficultyLocked()
- Specified by:
isDifficultyLocked
in interfaceIWorldInfo
-
fillCrashReportCategory
public void fillCrashReportCategory(CrashReportCategory p_85118_1_)
- Specified by:
fillCrashReportCategory
in interfaceIWorldInfo
-
setDifficulty
public void setDifficulty(Difficulty p_239156_1_)
-
setDifficultyLocked
public void setDifficultyLocked(boolean p_239157_1_)
-
getHorizonHeight
public double getHorizonHeight()
-
getClearColorScale
public double getClearColorScale()
-
-