public abstract class WorldProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float[] |
colorsSunriseSunset
Array for sunrise/sunset colors (RGBA)
|
protected int |
dimensionId
The id for the dimension (ex.
|
private java.lang.String |
generatorSettings |
protected boolean |
hasNoSky
A boolean that tells if a world does not have a sky.
|
protected boolean |
isHellWorld
States whether the Hell world provider is used(true) or if the normal world provider is used(false)
|
protected float[] |
lightBrightnessTable
Light to brightness conversion table
|
static float[] |
moonPhaseFactors |
private WorldType |
terrainType |
protected WorldChunkManager |
worldChunkMgr
World chunk manager being used to generate chunks
|
protected World |
worldObj
world object being used
|
Constructor and Description |
---|
WorldProvider() |
Modifier and Type | Method and Description |
---|---|
float[] |
calcSunriseSunsetColors(float celestialAngle,
float partialTicks)
Returns array with sunrise/sunset colors
|
float |
calculateCelestialAngle(long p_76563_1_,
float p_76563_3_)
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).
|
IChunkProvider |
createChunkGenerator()
Returns a new chunk provider which generates chunks for this world
|
boolean |
doesWaterVaporize() |
boolean |
doesXZShowFog(int x,
int z)
Returns true if the given X,Z coordinate should show environmental fog.
|
protected void |
generateLightBrightnessTable()
Creates the light to brightness table
|
int |
getAverageGroundLevel() |
float |
getCloudHeight()
the y level at which clouds are rendered.
|
int |
getDimensionId()
Gets the dimension of the provider
|
abstract java.lang.String |
getDimensionName()
Returns the dimension's name, e.g.
|
Vec3 |
getFogColor(float p_76562_1_,
float p_76562_2_)
Return Vec3D with biome specific fog color
|
boolean |
getHasNoSky() |
abstract java.lang.String |
getInternalNameSuffix() |
float[] |
getLightBrightnessTable() |
int |
getMoonPhase(long p_76559_1_) |
static WorldProvider |
getProviderForDimension(int dimension) |
BlockPos |
getSpawnCoordinate() |
double |
getVoidFogYFactor()
Returns a double value representing the Y value relative to the top of the map at which void fog is at its
maximum.
|
WorldBorder |
getWorldBorder() |
WorldChunkManager |
getWorldChunkManager() |
boolean |
isSkyColored() |
boolean |
isSurfaceWorld()
Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions.
|
void |
registerWorld(World worldIn)
associate an existing world with a World provider, and setup its lightbrightness table
|
protected void |
registerWorldChunkManager()
creates a new world chunk manager for WorldProvider
|
public static final float[] moonPhaseFactors
protected World worldObj
private WorldType terrainType
private java.lang.String generatorSettings
protected WorldChunkManager worldChunkMgr
protected boolean isHellWorld
protected boolean hasNoSky
protected final float[] lightBrightnessTable
protected int dimensionId
private final float[] colorsSunriseSunset
public final void registerWorld(World worldIn)
protected void generateLightBrightnessTable()
protected void registerWorldChunkManager()
public IChunkProvider createChunkGenerator()
public boolean canCoordinateBeSpawn(int x, int z)
public float calculateCelestialAngle(long p_76563_1_, float p_76563_3_)
public int getMoonPhase(long p_76559_1_)
public boolean isSurfaceWorld()
public float[] calcSunriseSunsetColors(float celestialAngle, float partialTicks)
public Vec3 getFogColor(float p_76562_1_, float p_76562_2_)
public boolean canRespawnHere()
public static WorldProvider getProviderForDimension(int dimension)
public float getCloudHeight()
public boolean isSkyColored()
public BlockPos getSpawnCoordinate()
public int getAverageGroundLevel()
public double getVoidFogYFactor()
public boolean doesXZShowFog(int x, int z)
public abstract java.lang.String getDimensionName()
public abstract java.lang.String getInternalNameSuffix()
public WorldChunkManager getWorldChunkManager()
public boolean doesWaterVaporize()
public boolean getHasNoSky()
public float[] getLightBrightnessTable()
public int getDimensionId()
public WorldBorder getWorldBorder()