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 p_i1994_1_,
int p_i1994_2_,
int p_i1994_3_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity p_76612_1_)
Adds an entity to the chunk.
|
void |
addTileEntity(TileEntity p_150813_1_) |
boolean |
canBlockSeeTheSky(int p_76619_1_,
int p_76619_2_,
int p_76619_3_)
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 p_76606_1_,
int p_76606_2_)
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 p_76629_1_,
int p_76629_2_,
int p_76629_3_,
int p_76629_4_)
Gets the amount of light on a block taking into account sunlight
|
int |
getBlockMetadata(int p_76628_1_,
int p_76628_2_,
int p_76628_3_)
Return the metadata corresponding to the given coordinates inside a chunk.
|
void |
getEntitiesOfTypeWithinAAAB(java.lang.Class p_76618_1_,
AxisAlignedBB p_76618_2_,
java.util.List p_76618_3_,
IEntitySelector p_76618_4_)
Gets all entities that can be assigned to the specified class.
|
void |
getEntitiesWithinAABBForEntity(Entity p_76588_1_,
AxisAlignedBB p_76588_2_,
java.util.List p_76588_3_,
IEntitySelector p_76588_4_)
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 p_76611_1_,
int p_76611_2_)
Returns the value in the height map at this x, z coordinate in the chunk
|
java.util.Random |
getRandomWithSeed(long p_76617_1_) |
int |
getSavedLightValue(EnumSkyBlock p_76614_1_,
int p_76614_2_,
int p_76614_3_,
int p_76614_4_)
Gets the amount of light saved in this block (doesn't adjust for daylight)
|
boolean |
isAtLocation(int p_76600_1_,
int p_76600_2_)
Checks whether the chunk is at the X/Z location specified
|
boolean |
isEmpty() |
boolean |
needsSaving(boolean p_76601_1_)
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 p_76622_1_)
removes entity using its y chunk coordinate as its index
|
void |
removeEntityAtIndex(Entity p_76608_1_,
int p_76608_2_)
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 p_76589_1_,
int p_76589_2_,
int p_76589_3_,
int p_76589_4_)
Set the metadata of a block in the chunk
|
void |
setChunkModified()
Sets the isModified flag for this Chunk
|
void |
setLightValue(EnumSkyBlock p_76633_1_,
int p_76633_2_,
int p_76633_3_,
int p_76633_4_,
int p_76633_5_)
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, setStorageArrayspublic EmptyChunk(World p_i1994_1_, int p_i1994_2_, int p_i1994_3_)
public boolean isAtLocation(int p_76600_1_,
int p_76600_2_)
isAtLocation in class Chunkpublic int getHeightValue(int p_76611_1_,
int p_76611_2_)
getHeightValue in class Chunkpublic void generateSkylightMap()
generateSkylightMap in class Chunkpublic void generateHeightMap()
generateHeightMap in class Chunkpublic 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 Chunkpublic 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 Chunkpublic int getBlockMetadata(int p_76628_1_,
int p_76628_2_,
int p_76628_3_)
getBlockMetadata in class Chunkpublic boolean setBlockMetadata(int p_76589_1_,
int p_76589_2_,
int p_76589_3_,
int p_76589_4_)
setBlockMetadata in class Chunkpublic int getSavedLightValue(EnumSkyBlock p_76614_1_, int p_76614_2_, int p_76614_3_, int p_76614_4_)
getSavedLightValue in class Chunkpublic void setLightValue(EnumSkyBlock p_76633_1_, int p_76633_2_, int p_76633_3_, int p_76633_4_, int p_76633_5_)
setLightValue in class Chunkpublic int getBlockLightValue(int p_76629_1_,
int p_76629_2_,
int p_76629_3_,
int p_76629_4_)
getBlockLightValue in class Chunkpublic void addEntity(Entity p_76612_1_)
public void removeEntity(Entity p_76622_1_)
removeEntity in class Chunkpublic void removeEntityAtIndex(Entity p_76608_1_, int p_76608_2_)
removeEntityAtIndex in class Chunkpublic boolean canBlockSeeTheSky(int p_76619_1_,
int p_76619_2_,
int p_76619_3_)
canBlockSeeTheSky in class Chunkpublic TileEntity func_150806_e(int p_150806_1_, int p_150806_2_, int p_150806_3_)
func_150806_e in class Chunkpublic void addTileEntity(TileEntity p_150813_1_)
addTileEntity in class Chunkpublic 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 Chunkpublic void removeTileEntity(int p_150805_1_,
int p_150805_2_,
int p_150805_3_)
removeTileEntity in class Chunkpublic void onChunkLoad()
onChunkLoad in class Chunkpublic void onChunkUnload()
onChunkUnload in class Chunkpublic void setChunkModified()
setChunkModified in class Chunkpublic void getEntitiesWithinAABBForEntity(Entity p_76588_1_, AxisAlignedBB p_76588_2_, java.util.List p_76588_3_, IEntitySelector p_76588_4_)
getEntitiesWithinAABBForEntity in class Chunkpublic void getEntitiesOfTypeWithinAAAB(java.lang.Class p_76618_1_,
AxisAlignedBB p_76618_2_,
java.util.List p_76618_3_,
IEntitySelector p_76618_4_)
getEntitiesOfTypeWithinAAAB in class Chunkpublic boolean needsSaving(boolean p_76601_1_)
needsSaving in class Chunkpublic java.util.Random getRandomWithSeed(long p_76617_1_)
getRandomWithSeed in class Chunkpublic boolean getAreLevelsEmpty(int p_76606_1_,
int p_76606_2_)
getAreLevelsEmpty in class Chunk