Package net.minecraft.src
Class EmptyChunk
java.lang.Object
net.minecraft.src.Chunk
net.minecraft.src.EmptyChunk
-
Field Summary
Fields inherited from class net.minecraft.src.Chunk
chunkTileEntityMap, entityLists, hasEntities, heightMap, heightMapMinimum, inhabitedTime, isChunkLoaded, isLit, isModified, isTerrainPopulated, lastSaveTime, precipitationHeightMap, sendUpdates, updateSkylightColumns, worldObj, xPosition, zPosition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an entity to the chunk.voidaddTileEntity(TileEntity par1TileEntity) Adds a TileEntity to a chunkbooleancanBlockSeeTheSky(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)voidGenerates the height map for a chunk from scratchvoidGenerates the initial skylight map for the chunk upon generation or load.booleangetAreLevelsEmpty(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).intgetBlockID(int par1, int par2, int par3) Return the ID of a block in the chunk.intgetBlockLightOpacity(int par1, int par2, int par3) intgetBlockLightValue(int par1, int par2, int par3, int par4) Gets the amount of light on a block taking into account sunlightintgetBlockMetadata(int par1, int par2, int par3) Return the metadata corresponding to the given coordinates inside a chunk.getChunkBlockTileEntity(int par1, int par2, int par3) Gets the TileEntity for a given block in this chunkvoidgetEntitiesOfTypeWithinAAAB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, List par3List, IEntitySelector par4IEntitySelector) Gets all entities that can be assigned to the specified class.voidgetEntitiesWithinAABBForEntity(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, listToFillintgetHeightValue(int par1, int par2) Returns the value in the height map at this x, z coordinate in the chunkgetRandomWithSeed(long par1) intgetSavedLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4) Gets the amount of light saved in this block (doesn't adjust for daylight)booleanisAtLocation(int par1, int par2) Checks whether the chunk is at the X/Z location specifiedbooleanisEmpty()booleanneedsSaving(boolean par1) Returns true if this Chunk needs to be savedvoidCalled when this Chunk is loaded by the ChunkProvidervoidCalled when this Chunk is unloaded by the ChunkProvidervoidremoveChunkBlockTileEntity(int par1, int par2, int par3) Removes the TileEntity for a given block in this chunkvoidremoveEntity(Entity par1Entity) removes entity using its y chunk coordinate as its indexvoidremoveEntityAtIndex(Entity par1Entity, int par2) Removes entity at the specified index from the entity array.booleansetBlockIDWithMetadata(int par1, int par2, int par3, int par4, int par5) Sets a blockID of a position within a chunk with metadata.booleansetBlockMetadata(int par1, int par2, int par3, int par4) Set the metadata of a block in the chunkvoidsetChunkBlockTileEntity(int par1, int par2, int par3, TileEntity par4TileEntity) Sets the TileEntity for a given block in this chunkvoidSets the isModified flag for this ChunkvoidsetLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4, int par5) Sets the light value at the coordinate.Methods inherited from class net.minecraft.src.Chunk
enqueueRelightChecks, fillChunk, getBiomeArray, getBiomeGenForWorldCoords, getBlockLightValueNoSky, getBlockNaturalLightValue, getBlockStorageArray, getChunkCoordIntPair, getClosestEntityMatchingCriteriaWithinRangeSq, getPrecipitationHeight, getTopFilledSegment, populateChunk, resetRelightChecks, setBiomeArray, setStorageArrays, updateSkylight
-
Constructor Details
-
EmptyChunk
-
-
Method Details
-
isAtLocation
public boolean isAtLocation(int par1, int par2) Checks whether the chunk is at the X/Z location specified- Overrides:
isAtLocationin classChunk
-
getHeightValue
public int getHeightValue(int par1, int par2) Returns the value in the height map at this x, z coordinate in the chunk- Overrides:
getHeightValuein classChunk
-
generateHeightMap
public void generateHeightMap()Generates the height map for a chunk from scratch- Overrides:
generateHeightMapin classChunk
-
generateSkylightMap
public void generateSkylightMap()Generates the initial skylight map for the chunk upon generation or load.- Overrides:
generateSkylightMapin classChunk
-
getBlockID
public int getBlockID(int par1, int par2, int par3) Return the ID of a block in the chunk.- Overrides:
getBlockIDin classChunk
-
getBlockLightOpacity
public int getBlockLightOpacity(int par1, int par2, int par3) - Overrides:
getBlockLightOpacityin classChunk
-
setBlockIDWithMetadata
public boolean setBlockIDWithMetadata(int par1, int par2, int par3, int par4, int par5) Sets a blockID of a position within a chunk with metadata. Args: x, y, z, blockID, metadata- Overrides:
setBlockIDWithMetadatain classChunk
-
getBlockMetadata
public int getBlockMetadata(int par1, int par2, int par3) Return the metadata corresponding to the given coordinates inside a chunk.- Overrides:
getBlockMetadatain classChunk
-
setBlockMetadata
public boolean setBlockMetadata(int par1, int par2, int par3, int par4) Set the metadata of a block in the chunk- Overrides:
setBlockMetadatain classChunk
-
getSavedLightValue
Gets the amount of light saved in this block (doesn't adjust for daylight)- Overrides:
getSavedLightValuein classChunk
-
setLightValue
Sets the light value at the coordinate. If enumskyblock is set to sky it sets it in the skylightmap and if its a block then into the blocklightmap. Args enumSkyBlock, x, y, z, lightValue- Overrides:
setLightValuein classChunk
-
getBlockLightValue
public int getBlockLightValue(int par1, int par2, int par3, int par4) Gets the amount of light on a block taking into account sunlight- Overrides:
getBlockLightValuein classChunk
-
addEntity
Adds an entity to the chunk. Args: entity -
removeEntity
removes entity using its y chunk coordinate as its index- Overrides:
removeEntityin classChunk
-
removeEntityAtIndex
Removes entity at the specified index from the entity array.- Overrides:
removeEntityAtIndexin classChunk
-
canBlockSeeTheSky
public 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)- Overrides:
canBlockSeeTheSkyin classChunk
-
getChunkBlockTileEntity
Gets the TileEntity for a given block in this chunk- Overrides:
getChunkBlockTileEntityin classChunk
-
addTileEntity
Adds a TileEntity to a chunk- Overrides:
addTileEntityin classChunk
-
setChunkBlockTileEntity
Sets the TileEntity for a given block in this chunk- Overrides:
setChunkBlockTileEntityin classChunk
-
removeChunkBlockTileEntity
public void removeChunkBlockTileEntity(int par1, int par2, int par3) Removes the TileEntity for a given block in this chunk- Overrides:
removeChunkBlockTileEntityin classChunk
-
onChunkLoad
public void onChunkLoad()Called when this Chunk is loaded by the ChunkProvider- Overrides:
onChunkLoadin classChunk
-
onChunkUnload
public void onChunkUnload()Called when this Chunk is unloaded by the ChunkProvider- Overrides:
onChunkUnloadin classChunk
-
setChunkModified
public void setChunkModified()Sets the isModified flag for this Chunk- Overrides:
setChunkModifiedin classChunk
-
getEntitiesWithinAABBForEntity
public 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- Overrides:
getEntitiesWithinAABBForEntityin classChunk
-
getEntitiesOfTypeWithinAAAB
public void getEntitiesOfTypeWithinAAAB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, List par3List, IEntitySelector par4IEntitySelector) Gets all entities that can be assigned to the specified class. Args: entityClass, aabb, listToFill- Overrides:
getEntitiesOfTypeWithinAAABin classChunk
-
needsSaving
public boolean needsSaving(boolean par1) Returns true if this Chunk needs to be saved- Overrides:
needsSavingin classChunk
-
getRandomWithSeed
- Overrides:
getRandomWithSeedin classChunk
-
isEmpty
public boolean isEmpty() -
getAreLevelsEmpty
public 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).- Overrides:
getAreLevelsEmptyin classChunk
-