public class EmptyChunk extends Chunk
Chunk.EnumCreateEntityTypeNULL_BLOCK_STORAGE, unloaded, xPosition, zPosition| Constructor and Description |
|---|
EmptyChunk(World worldIn,
int x,
int z) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity entityIn)
Adds an entity to the chunk.
|
void |
addTileEntity(BlockPos pos,
TileEntity tileEntityIn) |
void |
addTileEntity(TileEntity tileEntityIn) |
boolean |
canSeeSky(BlockPos pos) |
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 startY,
int endY)
Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty
(true) or not (false).
|
int |
getBlockLightOpacity(BlockPos pos) |
IBlockState |
getBlockState(BlockPos pos) |
<T extends Entity> |
getEntitiesOfTypeWithinAAAB(java.lang.Class<? extends T> entityClass,
AxisAlignedBB aabb,
java.util.List<T> listToFill,
<any> filter)
Gets all entities that can be assigned to the specified class.
|
void |
getEntitiesWithinAABBForEntity(Entity entityIn,
AxisAlignedBB aabb,
java.util.List<Entity> listToFill,
<any> p_177414_4_)
Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity.
|
int |
getHeightValue(int x,
int z)
Returns the value in the height map at this x, z coordinate in the chunk
|
int |
getLightFor(EnumSkyBlock p_177413_1_,
BlockPos pos) |
int |
getLightSubtracted(BlockPos pos,
int amount) |
java.util.Random |
getRandomWithSeed(long seed) |
TileEntity |
getTileEntity(BlockPos pos,
Chunk.EnumCreateEntityType p_177424_2_) |
boolean |
isAtLocation(int x,
int z)
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 entityIn)
removes entity using its y chunk coordinate as its index
|
void |
removeEntityAtIndex(Entity entityIn,
int index)
Removes entity at the specified index from the entity array.
|
void |
removeTileEntity(BlockPos pos) |
void |
setChunkModified()
Sets the isModified flag for this Chunk
|
void |
setLightFor(EnumSkyBlock p_177431_1_,
BlockPos pos,
int value) |
checkLight, enqueueRelightChecks, fillChunk, getBiome, getBiomeArray, getBlockState, getBlockStorageArray, getEntityLists, getHeight, getHeightMap, getInhabitedTime, getLowestHeight, getPos, getPrecipitationHeight, getTileEntityMap, getTopFilledSegment, getWorld, isChunkTicked, isLightPopulated, isLoaded, isPopulated, isTerrainPopulated, onTick, populateChunk, populateChunk, removeInvalidTileEntity, resetRelightChecks, setBiomeArray, setBlockState, setChunkLoaded, setHasEntities, setHeightMap, setInhabitedTime, setLastSaveTime, setLightPopulated, setModified, setStorageArrays, setTerrainPopulatedpublic EmptyChunk(World worldIn, int x, int z)
public boolean isAtLocation(int x,
int z)
isAtLocation in class Chunkpublic int getHeightValue(int x,
int z)
getHeightValue in class Chunkpublic void generateHeightMap()
generateHeightMap in class Chunkpublic void generateSkylightMap()
generateSkylightMap in class Chunkpublic IBlockState getBlockState(BlockPos pos)
getBlockState in class Chunkpublic int getBlockLightOpacity(BlockPos pos)
getBlockLightOpacity in class Chunkpublic int getLightFor(EnumSkyBlock p_177413_1_, BlockPos pos)
getLightFor in class Chunkpublic void setLightFor(EnumSkyBlock p_177431_1_, BlockPos pos, int value)
setLightFor in class Chunkpublic int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted in class Chunkpublic void addEntity(Entity entityIn)
public void removeEntity(Entity entityIn)
removeEntity in class Chunkpublic void removeEntityAtIndex(Entity entityIn, int index)
removeEntityAtIndex in class Chunkpublic TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType p_177424_2_)
getTileEntity in class Chunkpublic void addTileEntity(TileEntity tileEntityIn)
addTileEntity in class Chunkpublic void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
addTileEntity in class Chunkpublic void removeTileEntity(BlockPos pos)
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 entityIn, AxisAlignedBB aabb, java.util.List<Entity> listToFill, <any> p_177414_4_)
getEntitiesWithinAABBForEntity in class Chunkpublic <T extends Entity> void getEntitiesOfTypeWithinAAAB(java.lang.Class<? extends T> entityClass, AxisAlignedBB aabb, java.util.List<T> listToFill, <any> filter)
getEntitiesOfTypeWithinAAAB in class Chunkpublic boolean needsSaving(boolean p_76601_1_)
needsSaving in class Chunkpublic java.util.Random getRandomWithSeed(long seed)
getRandomWithSeed in class Chunkpublic boolean getAreLevelsEmpty(int startY,
int endY)
getAreLevelsEmpty in class Chunk