public abstract class WorldProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
dimensionId |
java.lang.String |
field_82913_c |
boolean |
hasNoSky |
boolean |
isHellWorld |
float[] |
lightBrightnessTable |
static float[] |
moonPhaseFactors |
WorldType |
terrainType |
WorldChunkManager |
worldChunkMgr |
World |
worldObj |
Constructor and Description |
---|
WorldProvider() |
Modifier and Type | Method and Description |
---|---|
float[] |
calcSunriseSunsetColors(float p_76560_1_,
float p_76560_2_) |
float |
calculateCelestialAngle(long p_76563_1_,
float p_76563_3_) |
void |
calculateInitialWeather() |
boolean |
canBlockFreeze(int x,
int y,
int z,
boolean byWater) |
boolean |
canCoordinateBeSpawn(int p_76566_1_,
int p_76566_2_) |
boolean |
canDoLightning(Chunk chunk) |
boolean |
canDoRainSnowIce(Chunk chunk) |
boolean |
canMineBlock(EntityPlayer player,
int x,
int y,
int z) |
boolean |
canRespawnHere() |
boolean |
canSnowAt(int x,
int y,
int z,
boolean checkLight) |
IChunkProvider |
createChunkGenerator() |
boolean |
doesXZShowFog(int p_76568_1_,
int p_76568_2_) |
Vec3 |
drawClouds(float partialTicks) |
protected void |
generateLightBrightnessTable() |
int |
getActualHeight() |
int |
getAverageGroundLevel() |
BiomeGenBase |
getBiomeGenForCoords(int x,
int z) |
float |
getCloudHeight() |
IRenderHandler |
getCloudRenderer() |
float |
getCurrentMoonPhaseFactor()
Calculates the current moon phase factor.
|
java.lang.String |
getDepartMessage()
A Message to display to the user when they transfer out of this dismension.
|
abstract java.lang.String |
getDimensionName() |
ChunkCoordinates |
getEntrancePortalLocation() |
Vec3 |
getFogColor(float p_76562_1_,
float p_76562_2_) |
int |
getHeight() |
double |
getHorizon() |
int |
getMoonPhase(long p_76559_1_) |
double |
getMovementFactor()
The dimensions movement factor.
|
static WorldProvider |
getProviderForDimension(int p_76570_0_) |
ChunkCoordinates |
getRandomizedSpawnPoint() |
int |
getRespawnDimension(EntityPlayerMP player)
Determines the dimension the player will be respawned in, typically this brings them back to the overworld.
|
java.lang.String |
getSaveFolder()
Returns the sub-folder of the world folder that this WorldProvider saves to.
|
long |
getSeed() |
Vec3 |
getSkyColor(Entity cameraEntity,
float partialTicks) |
IRenderHandler |
getSkyRenderer() |
ChunkCoordinates |
getSpawnPoint() |
float |
getStarBrightness(float par1)
Gets the Star Brightness for rendering sky.
|
float |
getSunBrightness(float par1)
Gets the Sun Brightness for rendering sky.
|
float |
getSunBrightnessFactor(float par1)
The current sun brightness factor for this dimension.
|
double |
getVoidFogYFactor() |
IRenderHandler |
getWeatherRenderer() |
java.lang.String |
getWelcomeMessage()
A message to display to the user when they transfer to this dimension.
|
boolean |
getWorldHasVoidParticles() |
long |
getWorldTime() |
boolean |
isBlockHighHumidity(int x,
int y,
int z) |
boolean |
isDaytime() |
boolean |
isSkyColored() |
boolean |
isSurfaceWorld() |
void |
registerWorld(World p_76558_1_) |
protected void |
registerWorldChunkManager() |
void |
resetRainAndThunder() |
void |
setAllowedSpawnTypes(boolean allowHostile,
boolean allowPeaceful) |
void |
setCloudRenderer(IRenderHandler renderer) |
void |
setDimension(int dim)
Sets the providers current dimension ID, used in default getSaveFolder()
Added to allow default providers to be registered for multiple dimensions.
|
void |
setSkyRenderer(IRenderHandler skyRenderer) |
void |
setSpawnPoint(int x,
int y,
int z) |
void |
setWeatherRenderer(IRenderHandler renderer) |
void |
setWorldTime(long time) |
boolean |
shouldMapSpin(java.lang.String entity,
double x,
double y,
double z)
Determine if the cusor on the map should 'spin' when rendered, like it does for the player in the nether.
|
void |
updateWeather() |
public static final float[] moonPhaseFactors
public World worldObj
public WorldType terrainType
public java.lang.String field_82913_c
public WorldChunkManager worldChunkMgr
public boolean isHellWorld
public boolean hasNoSky
public float[] lightBrightnessTable
public int dimensionId
public final void registerWorld(World p_76558_1_)
protected void generateLightBrightnessTable()
protected void registerWorldChunkManager()
public IChunkProvider createChunkGenerator()
public boolean canCoordinateBeSpawn(int p_76566_1_, int p_76566_2_)
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 p_76560_1_, float p_76560_2_)
public Vec3 getFogColor(float p_76562_1_, float p_76562_2_)
public boolean canRespawnHere()
public static WorldProvider getProviderForDimension(int p_76570_0_)
public float getCloudHeight()
public boolean isSkyColored()
public ChunkCoordinates getEntrancePortalLocation()
public int getAverageGroundLevel()
public boolean getWorldHasVoidParticles()
public double getVoidFogYFactor()
public boolean doesXZShowFog(int p_76568_1_, int p_76568_2_)
public abstract java.lang.String getDimensionName()
public void setDimension(int dim)
dim
- Dimension IDpublic java.lang.String getSaveFolder()
public java.lang.String getWelcomeMessage()
public java.lang.String getDepartMessage()
public double getMovementFactor()
public IRenderHandler getSkyRenderer()
public void setSkyRenderer(IRenderHandler skyRenderer)
public IRenderHandler getCloudRenderer()
public void setCloudRenderer(IRenderHandler renderer)
public IRenderHandler getWeatherRenderer()
public void setWeatherRenderer(IRenderHandler renderer)
public ChunkCoordinates getRandomizedSpawnPoint()
public boolean shouldMapSpin(java.lang.String entity, double x, double y, double z)
entity
- The entity holding the map, playername, or frame-ENTITYIDx
- X Positiony
- Y Positionz
- Z Postionpublic int getRespawnDimension(EntityPlayerMP player)
player
- The player that is respawningpublic BiomeGenBase getBiomeGenForCoords(int x, int z)
public boolean isDaytime()
public float getSunBrightnessFactor(float par1)
public float getCurrentMoonPhaseFactor()
public Vec3 drawClouds(float partialTicks)
public float getSunBrightness(float par1)
public float getStarBrightness(float par1)
public void setAllowedSpawnTypes(boolean allowHostile, boolean allowPeaceful)
public void calculateInitialWeather()
public void updateWeather()
public boolean canBlockFreeze(int x, int y, int z, boolean byWater)
public boolean canSnowAt(int x, int y, int z, boolean checkLight)
public void setWorldTime(long time)
public long getSeed()
public long getWorldTime()
public ChunkCoordinates getSpawnPoint()
public void setSpawnPoint(int x, int y, int z)
public boolean canMineBlock(EntityPlayer player, int x, int y, int z)
public boolean isBlockHighHumidity(int x, int y, int z)
public int getHeight()
public int getActualHeight()
public double getHorizon()
public void resetRainAndThunder()
public boolean canDoLightning(Chunk chunk)
public boolean canDoRainSnowIce(Chunk chunk)