public class EmptyColumn
extends net.minecraft.world.chunk.Chunk
| Constructor and Description |
|---|
EmptyColumn(net.minecraft.world.World worldIn,
int x,
int z) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCube(ICube cube) |
void |
addEntity(net.minecraft.entity.Entity entityIn)
Adds an entity to the chunk.
|
void |
addTileEntity(net.minecraft.util.math.BlockPos pos,
net.minecraft.tileentity.TileEntity tileEntityIn) |
void |
addTileEntity(net.minecraft.tileentity.TileEntity tileEntityIn) |
void |
addToStagingHeightmap(ICube cube) |
boolean |
canSeeSky(net.minecraft.util.math.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.
|
int |
getBlockLightOpacity(net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.state.IBlockState |
getBlockState(net.minecraft.util.math.BlockPos pos) |
net.minecraft.world.chunk.ChunkPrimer |
getCompatGenerationPrimer() |
ICube |
getCube(int cubeY) |
<T extends net.minecraft.entity.Entity> |
getEntitiesOfTypeWithinAABB(java.lang.Class<? extends T> entityClass,
net.minecraft.util.math.AxisAlignedBB aabb,
java.util.List<T> listToFill,
com.google.common.base.Predicate<? super T> filter)
Gets all entities that can be assigned to the specified class.
|
void |
getEntitiesWithinAABBForEntity(net.minecraft.entity.Entity entityIn,
net.minecraft.util.math.AxisAlignedBB aabb,
java.util.List<net.minecraft.entity.Entity> listToFill,
com.google.common.base.Predicate<? super net.minecraft.entity.Entity> filter)
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 |
getHeightValue(int localX,
int blockY,
int localZ) |
int |
getLightFor(net.minecraft.world.EnumSkyBlock type,
net.minecraft.util.math.BlockPos pos) |
int |
getLightSubtracted(net.minecraft.util.math.BlockPos pos,
int amount) |
ICube |
getLoadedCube(int cubeY) |
java.util.Collection<? extends ICube> |
getLoadedCubes() |
java.lang.Iterable<? extends ICube> |
getLoadedCubes(int startY,
int endY) |
IHeightMap |
getOpacityIndex() |
java.util.Random |
getRandomWithSeed(long seed) |
net.minecraft.tileentity.TileEntity |
getTileEntity(net.minecraft.util.math.BlockPos pos,
net.minecraft.world.chunk.Chunk.EnumCreateEntityType creationMode) |
int |
getTopYWithStaging(int localX,
int localZ) |
int |
getX() |
int |
getZ() |
boolean |
hasLoadedCubes() |
boolean |
isAtLocation(int x,
int z)
Checks whether the chunk is at the X/Z location specified
|
boolean |
isEmpty() |
boolean |
isEmptyBetween(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).
|
void |
markDirty()
Sets the isModified flag for this Chunk
|
boolean |
needsSaving(boolean p_76601_1_)
Returns true if this Chunk needs to be saved
|
void |
onLoad()
Called when this Chunk is loaded by the ChunkProvider
|
void |
onUnload()
Called when this Chunk is unloaded by the ChunkProvider
|
void |
preCacheCube(ICube cube) |
ICube |
removeCube(int cubeY) |
void |
removeEntity(net.minecraft.entity.Entity entityIn)
removes entity using its y chunk coordinate as its index
|
void |
removeEntityAtIndex(net.minecraft.entity.Entity entityIn,
int index)
Removes entity at the specified index from the entity array.
|
void |
removeFromStagingHeightmap(ICube cube) |
void |
removeTileEntity(net.minecraft.util.math.BlockPos pos) |
void |
setLightFor(net.minecraft.world.EnumSkyBlock type,
net.minecraft.util.math.BlockPos pos,
int value) |
boolean |
shouldTick() |
checkLight, enqueueRelightChecks, getBiome, getBiomeArray, getBlockState, getBlockStorageArray, getCapabilities, getCapability, getEntityLists, getHeight, getHeightMap, getInhabitedTime, getLowestHeight, getPos, getPrecipitationHeight, getTileEntityMap, getTopFilledSegment, getWorld, hasCapability, isLightPopulated, isLoaded, isPopulated, isTerrainPopulated, markLoaded, onTick, populate, populate, read, removeInvalidTileEntity, resetRelightChecks, setBiomeArray, setBlockState, setHasEntities, setHeightMap, setInhabitedTime, setLastSaveTime, setLightPopulated, setModified, setStorageArrays, setTerrainPopulated, wasTickedpublic boolean isAtLocation(int x,
int z)
isAtLocation in class net.minecraft.world.chunk.Chunkpublic int getHeightValue(int x,
int z)
getHeightValue in class net.minecraft.world.chunk.Chunkpublic int getHeightValue(int localX,
int blockY,
int localZ)
public boolean shouldTick()
public IHeightMap getOpacityIndex()
public java.util.Collection<? extends ICube> getLoadedCubes()
public java.lang.Iterable<? extends ICube> getLoadedCubes(int startY, int endY)
@Nullable public ICube getLoadedCube(int cubeY)
public ICube getCube(int cubeY)
public void addCube(ICube cube)
@Nullable public ICube removeCube(int cubeY)
public boolean hasLoadedCubes()
public void preCacheCube(ICube cube)
public int getX()
public int getZ()
public net.minecraft.world.chunk.ChunkPrimer getCompatGenerationPrimer()
public void removeFromStagingHeightmap(ICube cube)
public void addToStagingHeightmap(ICube cube)
public int getTopYWithStaging(int localX,
int localZ)
public void generateHeightMap()
generateHeightMap in class net.minecraft.world.chunk.Chunkpublic void generateSkylightMap()
generateSkylightMap in class net.minecraft.world.chunk.Chunkpublic net.minecraft.block.state.IBlockState getBlockState(net.minecraft.util.math.BlockPos pos)
getBlockState in class net.minecraft.world.chunk.Chunkpublic int getBlockLightOpacity(net.minecraft.util.math.BlockPos pos)
getBlockLightOpacity in class net.minecraft.world.chunk.Chunkpublic int getLightFor(net.minecraft.world.EnumSkyBlock type,
net.minecraft.util.math.BlockPos pos)
getLightFor in class net.minecraft.world.chunk.Chunkpublic void setLightFor(net.minecraft.world.EnumSkyBlock type,
net.minecraft.util.math.BlockPos pos,
int value)
setLightFor in class net.minecraft.world.chunk.Chunkpublic int getLightSubtracted(net.minecraft.util.math.BlockPos pos,
int amount)
getLightSubtracted in class net.minecraft.world.chunk.Chunkpublic void addEntity(net.minecraft.entity.Entity entityIn)
addEntity in class net.minecraft.world.chunk.Chunkpublic void removeEntity(net.minecraft.entity.Entity entityIn)
removeEntity in class net.minecraft.world.chunk.Chunkpublic void removeEntityAtIndex(net.minecraft.entity.Entity entityIn,
int index)
removeEntityAtIndex in class net.minecraft.world.chunk.Chunkpublic boolean canSeeSky(net.minecraft.util.math.BlockPos pos)
canSeeSky in class net.minecraft.world.chunk.Chunk@Nullable
public net.minecraft.tileentity.TileEntity getTileEntity(net.minecraft.util.math.BlockPos pos,
net.minecraft.world.chunk.Chunk.EnumCreateEntityType creationMode)
getTileEntity in class net.minecraft.world.chunk.Chunkpublic void addTileEntity(net.minecraft.tileentity.TileEntity tileEntityIn)
addTileEntity in class net.minecraft.world.chunk.Chunkpublic void addTileEntity(net.minecraft.util.math.BlockPos pos,
net.minecraft.tileentity.TileEntity tileEntityIn)
addTileEntity in class net.minecraft.world.chunk.Chunkpublic void removeTileEntity(net.minecraft.util.math.BlockPos pos)
removeTileEntity in class net.minecraft.world.chunk.Chunkpublic void onLoad()
onLoad in class net.minecraft.world.chunk.Chunkpublic void onUnload()
onUnload in class net.minecraft.world.chunk.Chunkpublic void markDirty()
markDirty in class net.minecraft.world.chunk.Chunkpublic void getEntitiesWithinAABBForEntity(net.minecraft.entity.Entity entityIn,
net.minecraft.util.math.AxisAlignedBB aabb,
java.util.List<net.minecraft.entity.Entity> listToFill,
com.google.common.base.Predicate<? super net.minecraft.entity.Entity> filter)
getEntitiesWithinAABBForEntity in class net.minecraft.world.chunk.Chunkpublic <T extends net.minecraft.entity.Entity> void getEntitiesOfTypeWithinAABB(java.lang.Class<? extends T> entityClass,
net.minecraft.util.math.AxisAlignedBB aabb,
java.util.List<T> listToFill,
com.google.common.base.Predicate<? super T> filter)
getEntitiesOfTypeWithinAABB in class net.minecraft.world.chunk.Chunkpublic boolean needsSaving(boolean p_76601_1_)
needsSaving in class net.minecraft.world.chunk.Chunkpublic java.util.Random getRandomWithSeed(long seed)
getRandomWithSeed in class net.minecraft.world.chunk.Chunkpublic boolean isEmpty()
isEmpty in class net.minecraft.world.chunk.Chunkpublic boolean isEmptyBetween(int startY,
int endY)
isEmptyBetween in class net.minecraft.world.chunk.Chunk