public class WorldProviderEnd extends WorldProvider
biomeProvider, doesWaterVaporize, hasNoSky, hasSkyLight, lightBrightnessTable, MOON_PHASE_FACTORS, world| Constructor and Description |
|---|
WorldProviderEnd() |
| Modifier and Type | Method and Description |
|---|---|
float[] |
calcSunriseSunsetColors(float celestialAngle,
float partialTicks)
Returns array with sunrise/sunset colors
|
float |
calculateCelestialAngle(long worldTime,
float partialTicks)
Calculates the angle of sun and moon in the sky relative to a specified time (usually worldTime)
|
boolean |
canCoordinateBeSpawn(int x,
int z)
Will check if the x, z position specified is alright to be set as the map spawn point
|
boolean |
canRespawnHere()
True if the player can respawn in this dimension (true = overworld, false = nether).
|
IChunkGenerator |
createChunkGenerator() |
boolean |
doesXZShowFog(int x,
int z)
Returns true if the given X,Z coordinate should show environmental fog.
|
int |
getAverageGroundLevel() |
float |
getCloudHeight()
the y level at which clouds are rendered.
|
DimensionType |
getDimensionType() |
DragonFightManager |
getDragonFightManager() |
Vec3d |
getFogColor(float p_76562_1_,
float p_76562_2_)
Return Vec3D with biome specific fog color
|
BlockPos |
getSpawnCoordinate() |
void |
init()
creates a new world chunk manager for WorldProvider
|
boolean |
isSkyColored() |
boolean |
isSurfaceWorld()
Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions.
|
void |
onWorldSave()
Called when the world is performing a save.
|
void |
onWorldUpdateEntities()
Called when the world is updating entities.
|
calculateInitialWeather, canBlockFreeze, canDoLightning, canDoRainSnowIce, canDropChunk, canMineBlock, canSnowAt, createWorldBorder, doesWaterVaporize, generateLightBrightnessTable, getActualHeight, getBiomeForCoords, getBiomeProvider, getCloudColor, getCloudRenderer, getCurrentMoonPhaseFactor, getDepartMessage, getDimension, getHeight, getHorizon, getLightBrightnessTable, getMoonPhase, getMovementFactor, getRandomizedSpawnPoint, getRespawnDimension, getSaveFolder, getSeed, getSkyColor, getSkyRenderer, getSpawnPoint, getStarBrightness, getSunBrightness, getSunBrightnessFactor, getVoidFogYFactor, getWeatherRenderer, getWelcomeMessage, getWorldTime, hasNoSky, hasSkyLight, initCapabilities, isBlockHighHumidity, isDaytime, onPlayerAdded, onPlayerRemoved, resetRainAndThunder, setAllowedSpawnTypes, setCloudRenderer, setDimension, setSkyRenderer, setSpawnPoint, setWeatherRenderer, setWorld, setWorldTime, shouldMapSpin, updateWeatherpublic void init()
init in class WorldProviderpublic IChunkGenerator createChunkGenerator()
createChunkGenerator in class WorldProviderpublic float calculateCelestialAngle(long worldTime,
float partialTicks)
calculateCelestialAngle in class WorldProviderpublic float[] calcSunriseSunsetColors(float celestialAngle,
float partialTicks)
calcSunriseSunsetColors in class WorldProviderpublic Vec3d getFogColor(float p_76562_1_, float p_76562_2_)
getFogColor in class WorldProviderpublic boolean isSkyColored()
isSkyColored in class WorldProviderpublic boolean canRespawnHere()
canRespawnHere in class WorldProviderpublic boolean isSurfaceWorld()
isSurfaceWorld in class WorldProviderpublic float getCloudHeight()
getCloudHeight in class WorldProviderpublic boolean canCoordinateBeSpawn(int x,
int z)
canCoordinateBeSpawn in class WorldProviderpublic BlockPos getSpawnCoordinate()
getSpawnCoordinate in class WorldProviderpublic int getAverageGroundLevel()
getAverageGroundLevel in class WorldProviderpublic boolean doesXZShowFog(int x,
int z)
doesXZShowFog in class WorldProviderpublic DimensionType getDimensionType()
getDimensionType in class WorldProviderpublic void onWorldSave()
onWorldSave in class WorldProviderpublic void onWorldUpdateEntities()
onWorldUpdateEntities in class WorldProviderpublic DragonFightManager getDragonFightManager()