public class EmptyChunk extends Chunk
chunkTileEntityMap, entityLists, hasEntities, heightMap, heightMapMinimum, inhabitedTime, 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, updateSkylight
public EmptyChunk(World par1World, int par2, int par3)
public boolean isAtLocation(int par1, int par2)
isAtLocation
in class Chunk
public int getHeightValue(int par1, int par2)
getHeightValue
in class Chunk
public void generateSkylightMap()
generateSkylightMap
in class Chunk
public void generateHeightMap()
generateHeightMap
in class Chunk
public int getBlockID(int par1, int par2, int par3)
getBlockID
in class Chunk
public int getBlockLightOpacity(int par1, int par2, int par3)
getBlockLightOpacity
in class Chunk
public boolean setBlockIDWithMetadata(int par1, int par2, int par3, int par4, int par5)
setBlockIDWithMetadata
in class Chunk
public int getBlockMetadata(int par1, int par2, int par3)
getBlockMetadata
in class Chunk
public boolean setBlockMetadata(int par1, int par2, int par3, int par4)
setBlockMetadata
in class Chunk
public int getSavedLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
getSavedLightValue
in class Chunk
public void setLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4, int par5)
setLightValue
in class Chunk
public int getBlockLightValue(int par1, int par2, int par3, int par4)
getBlockLightValue
in class Chunk
public void addEntity(Entity par1Entity)
public void removeEntity(Entity par1Entity)
removeEntity
in class Chunk
public void removeEntityAtIndex(Entity par1Entity, int par2)
removeEntityAtIndex
in class Chunk
public boolean canBlockSeeTheSky(int par1, int par2, int par3)
canBlockSeeTheSky
in class Chunk
public TileEntity getChunkBlockTileEntity(int par1, int par2, int par3)
getChunkBlockTileEntity
in class Chunk
public void addTileEntity(TileEntity par1TileEntity)
addTileEntity
in class Chunk
public void setChunkBlockTileEntity(int par1, int par2, int par3, TileEntity par4TileEntity)
setChunkBlockTileEntity
in class Chunk
public void removeChunkBlockTileEntity(int par1, int par2, int par3)
removeChunkBlockTileEntity
in class Chunk
public void onChunkLoad()
onChunkLoad
in class Chunk
public void onChunkUnload()
onChunkUnload
in class Chunk
public void setChunkModified()
setChunkModified
in class Chunk
public void getEntitiesWithinAABBForEntity(Entity par1Entity, AxisAlignedBB par2AxisAlignedBB, List par3List, IEntitySelector par4IEntitySelector)
getEntitiesWithinAABBForEntity
in class Chunk
public void getEntitiesOfTypeWithinAAAB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, List par3List, IEntitySelector par4IEntitySelector)
getEntitiesOfTypeWithinAAAB
in class Chunk
public boolean needsSaving(boolean par1)
needsSaving
in class Chunk
public Random getRandomWithSeed(long par1)
getRandomWithSeed
in class Chunk
public boolean getAreLevelsEmpty(int par1, int par2)
getAreLevelsEmpty
in class Chunk