public class EmptyChunk extends Chunk
chunkTileEntityMap, entityLists, field_150815_m, hasEntities, heightMap, heightMapMinimum, inhabitedTime, isChunkLoaded, isLightPopulated, 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 p_150813_1_) |
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)
|
TileEntity |
func_150806_e(int p_150806_1_,
int p_150806_2_,
int p_150806_3_) |
boolean |
func_150807_a(int p_150807_1_,
int p_150807_2_,
int p_150807_3_,
Block p_150807_4_,
int p_150807_5_) |
int |
func_150808_b(int p_150808_1_,
int p_150808_2_,
int p_150808_3_) |
void |
func_150812_a(int p_150812_1_,
int p_150812_2_,
int p_150812_3_,
TileEntity p_150812_4_) |
void |
generateHeightMap()
Generates the height map for a chunk from scratch
|
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).
|
Block |
getBlock(int p_150810_1_,
int p_150810_2_,
int p_150810_3_)
Returns the block corresponding to the given coordinates inside a chunk.
|
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.
|
void |
getEntitiesOfTypeWithinAAAB(java.lang.Class par1Class,
AxisAlignedBB par2AxisAlignedBB,
java.util.List par3List,
IEntitySelector par4IEntitySelector)
Gets all entities that can be assigned to the specified class.
|
void |
getEntitiesWithinAABBForEntity(Entity par1Entity,
AxisAlignedBB par2AxisAlignedBB,
java.util.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
|
java.util.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 |
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.
|
void |
removeTileEntity(int p_150805_1_,
int p_150805_2_,
int p_150805_3_) |
boolean |
setBlockMetadata(int par1,
int par2,
int par3,
int par4)
Set the metadata of a block in the 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.
|
enqueueRelightChecks, fillChunk, func_150802_k, func_150804_b, func_150809_p, getBiomeArray, getBiomeGenForWorldCoords, getBlockStorageArray, getChunkCoordIntPair, getPrecipitationHeight, getTileEntityUnsafe, getTopFilledSegment, populateChunk, removeInvalidTileEntity, resetRelightChecks, setBiomeArray, setStorageArrays
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 Block getBlock(int p_150810_1_, int p_150810_2_, int p_150810_3_)
public int func_150808_b(int p_150808_1_, int p_150808_2_, int p_150808_3_)
func_150808_b
in class Chunk
public boolean func_150807_a(int p_150807_1_, int p_150807_2_, int p_150807_3_, Block p_150807_4_, int p_150807_5_)
func_150807_a
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 func_150806_e(int p_150806_1_, int p_150806_2_, int p_150806_3_)
func_150806_e
in class Chunk
public void addTileEntity(TileEntity p_150813_1_)
addTileEntity
in class Chunk
public void func_150812_a(int p_150812_1_, int p_150812_2_, int p_150812_3_, TileEntity p_150812_4_)
func_150812_a
in class Chunk
public void removeTileEntity(int p_150805_1_, int p_150805_2_, int p_150805_3_)
removeTileEntity
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, java.util.List par3List, IEntitySelector par4IEntitySelector)
getEntitiesWithinAABBForEntity
in class Chunk
public void getEntitiesOfTypeWithinAAAB(java.lang.Class par1Class, AxisAlignedBB par2AxisAlignedBB, java.util.List par3List, IEntitySelector par4IEntitySelector)
getEntitiesOfTypeWithinAAAB
in class Chunk
public boolean needsSaving(boolean par1)
needsSaving
in class Chunk
public java.util.Random getRandomWithSeed(long par1)
getRandomWithSeed
in class Chunk
public boolean getAreLevelsEmpty(int par1, int par2)
getAreLevelsEmpty
in class Chunk