public class EmptyChunk extends Chunk
Chunk.EnumCreateEntityTypeEMPTY_SECTION, x, z| Constructor and Description |
|---|
EmptyChunk(World worldIn,
int x,
int z) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity entityIn) |
void |
addTileEntity(BlockPos pos,
TileEntity tileEntityIn) |
void |
addTileEntity(TileEntity tileEntityIn) |
boolean |
canSeeSky(BlockPos pos) |
void |
generateHeightMap() |
void |
generateSkylightMap() |
IBlockState |
getBlockState(BlockPos pos) |
<T extends Entity> |
getEntitiesOfTypeWithinAABB(java.lang.Class<? extends T> entityClass,
AxisAlignedBB aabb,
java.util.List<T> listToFill,
java.util.function.Predicate<? super T> filter) |
void |
getEntitiesWithinAABBForEntity(Entity entityIn,
AxisAlignedBB aabb,
java.util.List<Entity> listToFill,
java.util.function.Predicate<? super Entity> filter) |
int |
getLight(EnumLightType lightType,
BlockPos pos,
boolean hasSkylight) |
int |
getLightSubtracted(BlockPos pos,
int amount,
boolean hasSkylight) |
TileEntity |
getTileEntity(BlockPos pos,
Chunk.EnumCreateEntityType creationMode) |
boolean |
isAtLocation(int x,
int z) |
boolean |
isEmpty() |
boolean |
isEmptyBetween(int startY,
int endY) |
void |
markDirty() |
boolean |
needsSaving(boolean p_76601_1_) |
void |
onLoad() |
void |
onUnload() |
void |
removeEntity(Entity entityIn) |
void |
removeEntityAtIndex(Entity entityIn,
int index) |
void |
removeTileEntity(BlockPos pos) |
void |
setLightFor(EnumLightType light,
boolean hasSkylight,
BlockPos pos,
int lightValue) |
addPackedPos, addStructureReference, addTileEntity, areAllNeighborsLoaded, enqueueRelightChecks, func_212247_j, getBiome, getBiomes, getBlockState, getBlocksToBeTicked, getCarvingMask, getDeferredTileEntity, getEntityLists, getFluidState, getFluidState, getHeightmap, getHeightmaps, getInhabitedTime, getLightFor, getLightSubtracted, getLowestHeight, getPackedPositions, getPos, getSections, getStatus, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getTileEntitiesPos, getTileEntity, getTileEntityMap, getTopBlockY, getUpgradeData, getWorld, getWorldForge, isLoaded, isPopulated, markLoaded, neighborAdded, neighborRemoved, postProcess, putStructureStart, read, readCapsFromNBT, resetRelightChecks, setBlockState, setHasEntities, setHeightmap, setInhabitedTime, setLastSaveTime, setLightFor, setModified, setSections, setStatus, setStatus, setStructureReferences, setStructureStarts, tick, wasTicked, writeCapsToNBTareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHeightMap, getLastExtendedBlockStorage, getLightBlockPositions, getTopFilledSegment, markBlockForPostprocessing, setBiomesgetMaxLightLevelgetCapability, getCapabilitypublic EmptyChunk(World worldIn, int x, int z)
public boolean isAtLocation(int x,
int z)
isAtLocation in class Chunkpublic void generateHeightMap()
generateHeightMap in class Chunkpublic void generateSkylightMap()
generateSkylightMap in class Chunkpublic IBlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockReadergetBlockState in class Chunkpublic int getLight(EnumLightType lightType, BlockPos pos, boolean hasSkylight)
public void setLightFor(EnumLightType light, boolean hasSkylight, BlockPos pos, int lightValue)
setLightFor in interface IChunksetLightFor in class Chunkpublic int getLightSubtracted(BlockPos pos, int amount, boolean hasSkylight)
getLightSubtracted in interface IChunkgetLightSubtracted 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 boolean canSeeSky(BlockPos pos)
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType creationMode)
getTileEntity in class Chunkpublic void addTileEntity(TileEntity tileEntityIn)
addTileEntity in class Chunkpublic void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
addTileEntity in interface IChunkaddTileEntity in class Chunkpublic void removeTileEntity(BlockPos pos)
removeTileEntity in interface IChunkremoveTileEntity in class Chunkpublic void getEntitiesWithinAABBForEntity(@Nullable
Entity entityIn,
AxisAlignedBB aabb,
java.util.List<Entity> listToFill,
java.util.function.Predicate<? super Entity> filter)
getEntitiesWithinAABBForEntity in class Chunkpublic <T extends Entity> void getEntitiesOfTypeWithinAABB(java.lang.Class<? extends T> entityClass, AxisAlignedBB aabb, java.util.List<T> listToFill, java.util.function.Predicate<? super T> filter)
getEntitiesOfTypeWithinAABB in class Chunkpublic boolean needsSaving(boolean p_76601_1_)
needsSaving in class Chunkpublic boolean isEmptyBetween(int startY,
int endY)
isEmptyBetween in class Chunk