|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.WorldProvider
public abstract class WorldProvider
Field Summary | |
---|---|
boolean |
hasNoSky
A boolean that tells if a world does not have a sky. |
boolean |
isHellWorld
States whether the Hell world provider is used(true) or if the normal world provider is used(false) |
float[] |
lightBrightnessTable
Light to brightness conversion table |
WorldType |
terrainType
|
WorldChunkManager |
worldChunkMgr
World chunk manager being used to generate chunks |
World |
worldObj
world object being used |
int |
worldType
0 for normal world -1 for hell |
Constructor Summary | |
---|---|
WorldProvider()
|
Method Summary | |
---|---|
float[] |
calcSunriseSunsetColors(float par1,
float par2)
|
float |
calculateCelestialAngle(long par1,
float par3)
Calculates the angle of sun and moon in the sky relative to a specified time (usually worldTime) |
boolean |
canCoordinateBeSpawn(int par1,
int par2)
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). |
boolean |
doesXZShowFog(int par1,
int par2)
|
abstract String |
func_80007_l()
|
int |
getAverageGroundLevel()
|
IChunkProvider |
getChunkProvider()
Returns the chunk provider back for the world provider |
float |
getCloudHeight()
|
String |
getDepartMessage()
A Message to display to the user when they transfer out of this dismension. |
ChunkCoordinates |
getEntrancePortalLocation()
Gets the hard-coded portal location to use when entering this dimension |
Vec3 |
getFogColor(float par1,
float par2)
|
int |
getMoonPhase(long par1,
float par3)
|
double |
getMovementFactor()
The dimensions movement factor. |
static WorldProvider |
getProviderForDimension(int par0)
|
ChunkCoordinates |
getRandomizedSpawnPoint()
|
String |
getSaveFolder()
Returns the sub-folder of the world folder that this WorldProvider saves to. |
SkyProvider |
getSkyProvider()
|
double |
getVoidFogYFactor()
|
String |
getWelcomeMessage()
A message to display to the user when they transfer to this dimension. |
boolean |
getWorldHasVoidParticles()
|
boolean |
isSkyColored()
|
boolean |
isSurfaceWorld()
Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions. |
void |
registerWorld(World par1World)
associate an existing world with a World provider, and setup its lightbrightness table |
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 |
setSkyProvider(SkyProvider skyProvider)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public World worldObj
public WorldType terrainType
public WorldChunkManager worldChunkMgr
public boolean isHellWorld
public boolean hasNoSky
public float[] lightBrightnessTable
public int worldType
Constructor Detail |
---|
public WorldProvider()
Method Detail |
---|
public final void registerWorld(World par1World)
public IChunkProvider getChunkProvider()
public boolean canCoordinateBeSpawn(int par1, int par2)
public float calculateCelestialAngle(long par1, float par3)
public int getMoonPhase(long par1, float par3)
public boolean isSurfaceWorld()
public float[] calcSunriseSunsetColors(float par1, float par2)
public Vec3 getFogColor(float par1, float par2)
public boolean canRespawnHere()
public static WorldProvider getProviderForDimension(int par0)
public float getCloudHeight()
public boolean isSkyColored()
public ChunkCoordinates getEntrancePortalLocation()
public int getAverageGroundLevel()
public boolean getWorldHasVoidParticles()
public double getVoidFogYFactor()
public boolean doesXZShowFog(int par1, int par2)
public abstract String func_80007_l()
public void setDimension(int dim)
dim
- Dimension IDpublic String getSaveFolder()
public String getWelcomeMessage()
public String getDepartMessage()
public double getMovementFactor()
public SkyProvider getSkyProvider()
public void setSkyProvider(SkyProvider skyProvider)
public ChunkCoordinates getRandomizedSpawnPoint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |