|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.world.WorldProvider
public abstract class WorldProvider
Field Summary | |
---|---|
int |
dimensionId
The id for the dimension (ex. |
String |
field_82913_c
|
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 |
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) |
void |
calculateInitialWeather()
|
boolean |
canBlockFreeze(int x,
int y,
int z,
boolean byWater)
|
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 |
canDoLightning(Chunk chunk)
|
boolean |
canDoRainSnowIce(Chunk chunk)
|
boolean |
canMineBlock(EntityPlayer player,
int x,
int y,
int z)
|
boolean |
canRespawnHere()
True if the player can respawn in this dimension (true = overworld, false = nether). |
boolean |
canSnowAt(int x,
int y,
int z)
|
IChunkProvider |
createChunkGenerator()
Returns a new chunk provider which generates chunks for this world |
boolean |
doesXZShowFog(int par1,
int par2)
|
Vec3 |
drawClouds(float partialTicks)
|
int |
getActualHeight()
|
int |
getAverageGroundLevel()
|
BiomeGenBase |
getBiomeGenForCoords(int x,
int z)
|
float |
getCloudHeight()
|
IRenderHandler |
getCloudRenderer()
|
String |
getDepartMessage()
A Message to display to the user when they transfer out of this dismension. |
abstract String |
getDimensionName()
Returns the dimension's name, e.g. |
ChunkCoordinates |
getEntrancePortalLocation()
Gets the hard-coded portal location to use when entering this dimension. |
Vec3 |
getFogColor(float par1,
float par2)
|
int |
getHeight()
|
double |
getHorizon()
|
int |
getMoonPhase(long par1,
float par3)
|
double |
getMovementFactor()
The dimensions movement factor. |
static WorldProvider |
getProviderForDimension(int par0)
|
ChunkCoordinates |
getRandomizedSpawnPoint()
|
int |
getRespawnDimension(EntityPlayerMP player)
Determines the dimension the player will be respawned in, typically this brings them back to the overworld. |
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)
|
double |
getVoidFogYFactor()
|
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()
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 |
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 |
setWorldTime(long time)
|
boolean |
shouldMapSpin(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 |
toggleRain()
|
void |
updateWeather()
|
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 String field_82913_c
public WorldChunkManager worldChunkMgr
public boolean isHellWorld
public boolean hasNoSky
public float[] lightBrightnessTable
public int dimensionId
Constructor Detail |
---|
public WorldProvider()
Method Detail |
---|
public final void registerWorld(World par1World)
public IChunkProvider createChunkGenerator()
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 getDimensionName()
public void setDimension(int dim)
dim
- Dimension IDpublic String getSaveFolder()
public String getWelcomeMessage()
public String getDepartMessage()
public double getMovementFactor()
public IRenderHandler getSkyRenderer()
public void setSkyRenderer(IRenderHandler skyRenderer)
public IRenderHandler getCloudRenderer()
public void setCloudRenderer(IRenderHandler renderer)
public ChunkCoordinates getRandomizedSpawnPoint()
public boolean shouldMapSpin(String entity, double x, double y, double z)
entity
- The entity holding the map, playername, or frame-ENTITYIDx
- X Positiony
- Y Positionz
- Z Postion
public int getRespawnDimension(EntityPlayerMP player)
player
- The player that is respawning
public BiomeGenBase getBiomeGenForCoords(int x, int z)
public boolean isDaytime()
public Vec3 getSkyColor(Entity cameraEntity, float partialTicks)
public Vec3 drawClouds(float partialTicks)
public float getStarBrightness(float par1)
public void setAllowedSpawnTypes(boolean allowHostile, boolean allowPeaceful)
public void calculateInitialWeather()
public void updateWeather()
public void toggleRain()
public boolean canBlockFreeze(int x, int y, int z, boolean byWater)
public boolean canSnowAt(int x, int y, int z)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |