public class EmptyChunk extends Chunk
chunkTileEntityMap, entityLists, field_111204_q, hasEntities, heightMap, heightMapMinimum, isChunkLoaded, isLit, isModified, isTerrainPopulated, lastSaveTime, precipitationHeightMap, sendUpdates, updateSkylightColumns, worldObj, xPosition, zPosition| Constructor and Description |
|---|
EmptyChunk(World par1World,
int par2,
int par3) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity par1Entity)
Adds an entity to the chunk.
|
void |
addTileEntity(TileEntity par1TileEntity)
Adds a TileEntity to a chunk
|
boolean |
canBlockSeeTheSky(int par1,
int par2,
int par3)
Returns whether is not a block above this one blocking sight to the sky (done via checking against the heightmap)
|
void |
generateHeightMap() |
void |
generateSkylightMap()
Generates the initial skylight map for the chunk upon generation or load.
|
boolean |
getAreLevelsEmpty(int par1,
int par2)
Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty
(true) or not (false).
|
int |
getBlockID(int par1,
int par2,
int par3)
Return the ID of a block in the chunk.
|
int |
getBlockLightOpacity(int par1,
int par2,
int par3) |
int |
getBlockLightValue(int par1,
int par2,
int par3,
int par4)
Gets the amount of light on a block taking into account sunlight
|
int |
getBlockMetadata(int par1,
int par2,
int par3)
Return the metadata corresponding to the given coordinates inside a chunk.
|
TileEntity |
getChunkBlockTileEntity(int par1,
int par2,
int par3)
Gets the TileEntity for a given block in this chunk
|
void |
getEntitiesOfTypeWithinAAAB(Class par1Class,
AxisAlignedBB par2AxisAlignedBB,
List par3List,
IEntitySelector par4IEntitySelector)
Gets all entities that can be assigned to the specified class.
|
void |
getEntitiesWithinAABBForEntity(Entity par1Entity,
AxisAlignedBB par2AxisAlignedBB,
List par3List,
IEntitySelector par4IEntitySelector)
Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity
Args: entity, aabb, listToFill
|
int |
getHeightValue(int par1,
int par2)
Returns the value in the height map at this x, z coordinate in the chunk
|
Random |
getRandomWithSeed(long par1) |
int |
getSavedLightValue(EnumSkyBlock par1EnumSkyBlock,
int par2,
int par3,
int par4)
Gets the amount of light saved in this block (doesn't adjust for daylight)
|
boolean |
isAtLocation(int par1,
int par2)
Checks whether the chunk is at the X/Z location specified
|
boolean |
isEmpty() |
boolean |
needsSaving(boolean par1)
Returns true if this Chunk needs to be saved
|
void |
onChunkLoad()
Called when this Chunk is loaded by the ChunkProvider
|
void |
onChunkUnload()
Called when this Chunk is unloaded by the ChunkProvider
|
void |
removeChunkBlockTileEntity(int par1,
int par2,
int par3)
Removes the TileEntity for a given block in this chunk
|
void |
removeEntity(Entity par1Entity)
removes entity using its y chunk coordinate as its index
|
void |
removeEntityAtIndex(Entity par1Entity,
int par2)
Removes entity at the specified index from the entity array.
|
boolean |
setBlockIDWithMetadata(int par1,
int par2,
int par3,
int par4,
int par5)
Sets a blockID of a position within a chunk with metadata.
|
boolean |
setBlockMetadata(int par1,
int par2,
int par3,
int par4)
Set the metadata of a block in the chunk
|
void |
setChunkBlockTileEntity(int par1,
int par2,
int par3,
TileEntity par4TileEntity)
Sets the TileEntity for a given block in this chunk
|
void |
setChunkModified()
Sets the isModified flag for this Chunk
|
void |
setLightValue(EnumSkyBlock par1EnumSkyBlock,
int par2,
int par3,
int par4,
int par5)
Sets the light value at the coordinate.
|
cleanChunkBlockTileEntity, enqueueRelightChecks, fillChunk, getBiomeArray, getBiomeGenForWorldCoords, getBlockStorageArray, getChunkCoordIntPair, getPrecipitationHeight, getTopFilledSegment, populateChunk, resetRelightChecks, setBiomeArray, setStorageArrays, updateSkylightpublic EmptyChunk(World par1World, int par2, int par3)
public boolean isAtLocation(int par1,
int par2)
isAtLocation in class Chunkpublic int getHeightValue(int par1,
int par2)
getHeightValue in class Chunkpublic void generateSkylightMap()
generateSkylightMap in class Chunkpublic void generateHeightMap()
generateHeightMap in class Chunkpublic int getBlockID(int par1,
int par2,
int par3)
getBlockID in class Chunkpublic int getBlockLightOpacity(int par1,
int par2,
int par3)
getBlockLightOpacity in class Chunkpublic boolean setBlockIDWithMetadata(int par1,
int par2,
int par3,
int par4,
int par5)
setBlockIDWithMetadata in class Chunkpublic int getBlockMetadata(int par1,
int par2,
int par3)
getBlockMetadata in class Chunkpublic boolean setBlockMetadata(int par1,
int par2,
int par3,
int par4)
setBlockMetadata in class Chunkpublic int getSavedLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
getSavedLightValue in class Chunkpublic void setLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4, int par5)
setLightValue in class Chunkpublic int getBlockLightValue(int par1,
int par2,
int par3,
int par4)
getBlockLightValue in class Chunkpublic void addEntity(Entity par1Entity)
public void removeEntity(Entity par1Entity)
removeEntity in class Chunkpublic void removeEntityAtIndex(Entity par1Entity, int par2)
removeEntityAtIndex in class Chunkpublic boolean canBlockSeeTheSky(int par1,
int par2,
int par3)
canBlockSeeTheSky in class Chunkpublic TileEntity getChunkBlockTileEntity(int par1, int par2, int par3)
getChunkBlockTileEntity in class Chunkpublic void addTileEntity(TileEntity par1TileEntity)
addTileEntity in class Chunkpublic void setChunkBlockTileEntity(int par1,
int par2,
int par3,
TileEntity par4TileEntity)
setChunkBlockTileEntity in class Chunkpublic void removeChunkBlockTileEntity(int par1,
int par2,
int par3)
removeChunkBlockTileEntity in class Chunkpublic void onChunkLoad()
onChunkLoad in class Chunkpublic void onChunkUnload()
onChunkUnload in class Chunkpublic void setChunkModified()
setChunkModified in class Chunkpublic void getEntitiesWithinAABBForEntity(Entity par1Entity, AxisAlignedBB par2AxisAlignedBB, List par3List, IEntitySelector par4IEntitySelector)
getEntitiesWithinAABBForEntity in class Chunkpublic void getEntitiesOfTypeWithinAAAB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, List par3List, IEntitySelector par4IEntitySelector)
getEntitiesOfTypeWithinAAAB in class Chunkpublic boolean needsSaving(boolean par1)
needsSaving in class Chunkpublic Random getRandomWithSeed(long par1)
getRandomWithSeed in class Chunkpublic boolean getAreLevelsEmpty(int par1,
int par2)
getAreLevelsEmpty in class Chunk