Package net.minecraft.world.storage
Class DerivedWorldInfo
- java.lang.Object
-
- net.minecraft.world.storage.DerivedWorldInfo
-
- All Implemented Interfaces:
IServerWorldInfo
,ISpawnWorldInfo
,IWorldInfo
public class DerivedWorldInfo extends java.lang.Object implements IServerWorldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private IServerConfiguration
worldData
private IServerWorldInfo
wrapped
-
Constructor Summary
Constructors Constructor Description DerivedWorldInfo(IServerConfiguration p_i232150_1_, IServerWorldInfo p_i232150_2_)
-
Method Summary
-
-
-
Field Detail
-
worldData
private final IServerConfiguration worldData
-
wrapped
private final IServerWorldInfo wrapped
-
-
Constructor Detail
-
DerivedWorldInfo
public DerivedWorldInfo(IServerConfiguration p_i232150_1_, IServerWorldInfo p_i232150_2_)
-
-
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
-
getLevelName
public java.lang.String getLevelName()
- Specified by:
getLevelName
in interfaceIServerWorldInfo
-
getClearWeatherTime
public int getClearWeatherTime()
- Specified by:
getClearWeatherTime
in interfaceIServerWorldInfo
-
setClearWeatherTime
public void setClearWeatherTime(int p_230391_1_)
- Specified by:
setClearWeatherTime
in interfaceIServerWorldInfo
-
isThundering
public boolean isThundering()
- Specified by:
isThundering
in interfaceIWorldInfo
-
getThunderTime
public int getThunderTime()
- Specified by:
getThunderTime
in interfaceIServerWorldInfo
-
isRaining
public boolean isRaining()
- Specified by:
isRaining
in interfaceIWorldInfo
-
getRainTime
public int getRainTime()
- Specified by:
getRainTime
in interfaceIServerWorldInfo
-
getGameType
public GameType getGameType()
- Specified by:
getGameType
in interfaceIServerWorldInfo
-
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_82572_1_)
- Specified by:
setGameTime
in interfaceIServerWorldInfo
-
setDayTime
public void setDayTime(long p_76068_1_)
- Specified by:
setDayTime
in interfaceIServerWorldInfo
-
setSpawn
public void setSpawn(BlockPos p_176143_1_, float p_176143_2_)
- Specified by:
setSpawn
in interfaceISpawnWorldInfo
-
setThundering
public void setThundering(boolean p_76069_1_)
- Specified by:
setThundering
in interfaceIServerWorldInfo
-
setThunderTime
public void setThunderTime(int p_76090_1_)
- Specified by:
setThunderTime
in interfaceIServerWorldInfo
-
setRaining
public void setRaining(boolean p_76084_1_)
- Specified by:
setRaining
in interfaceIWorldInfo
-
setRainTime
public void setRainTime(int p_76080_1_)
- Specified by:
setRainTime
in interfaceIServerWorldInfo
-
setGameType
public void setGameType(GameType p_230392_1_)
- Specified by:
setGameType
in interfaceIServerWorldInfo
-
isHardcore
public boolean isHardcore()
- Specified by:
isHardcore
in interfaceIWorldInfo
-
getAllowCommands
public boolean getAllowCommands()
- Specified by:
getAllowCommands
in interfaceIServerWorldInfo
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized
in interfaceIServerWorldInfo
-
setInitialized
public void setInitialized(boolean p_76091_1_)
- Specified by:
setInitialized
in interfaceIServerWorldInfo
-
getGameRules
public GameRules getGameRules()
- Specified by:
getGameRules
in interfaceIWorldInfo
-
getWorldBorder
public WorldBorder.Serializer getWorldBorder()
- Specified by:
getWorldBorder
in interfaceIServerWorldInfo
-
setWorldBorder
public void setWorldBorder(WorldBorder.Serializer p_230393_1_)
- Specified by:
setWorldBorder
in interfaceIServerWorldInfo
-
getDifficulty
public Difficulty getDifficulty()
- Specified by:
getDifficulty
in interfaceIWorldInfo
-
isDifficultyLocked
public boolean isDifficultyLocked()
- Specified by:
isDifficultyLocked
in interfaceIWorldInfo
-
getScheduledEvents
public TimerCallbackManager<MinecraftServer> getScheduledEvents()
- Specified by:
getScheduledEvents
in interfaceIServerWorldInfo
-
getWanderingTraderSpawnDelay
public int getWanderingTraderSpawnDelay()
- Specified by:
getWanderingTraderSpawnDelay
in interfaceIServerWorldInfo
-
setWanderingTraderSpawnDelay
public void setWanderingTraderSpawnDelay(int p_230396_1_)
- Specified by:
setWanderingTraderSpawnDelay
in interfaceIServerWorldInfo
-
getWanderingTraderSpawnChance
public int getWanderingTraderSpawnChance()
- Specified by:
getWanderingTraderSpawnChance
in interfaceIServerWorldInfo
-
setWanderingTraderSpawnChance
public void setWanderingTraderSpawnChance(int p_230397_1_)
- Specified by:
setWanderingTraderSpawnChance
in interfaceIServerWorldInfo
-
setWanderingTraderId
public void setWanderingTraderId(java.util.UUID p_230394_1_)
- Specified by:
setWanderingTraderId
in interfaceIServerWorldInfo
-
fillCrashReportCategory
public void fillCrashReportCategory(CrashReportCategory p_85118_1_)
- Specified by:
fillCrashReportCategory
in interfaceIServerWorldInfo
- Specified by:
fillCrashReportCategory
in interfaceIWorldInfo
-
-