public class EmptyChunk extends Chunk
Chunk.EnumCreateEntityType
EMPTY_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, writeCapsToNBT
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createHeightMap, getLastExtendedBlockStorage, getLightBlockPositions, getTopFilledSegment, markBlockForPostprocessing, setBiomes
getMaxLightLevel
getCapability, getCapability
public EmptyChunk(World worldIn, int x, int z)
public boolean isAtLocation(int x, int z)
isAtLocation
in class Chunk
public void generateHeightMap()
generateHeightMap
in class Chunk
public void generateSkylightMap()
generateSkylightMap
in class Chunk
public IBlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockReader
getBlockState
in class Chunk
public int getLight(EnumLightType lightType, BlockPos pos, boolean hasSkylight)
public void setLightFor(EnumLightType light, boolean hasSkylight, BlockPos pos, int lightValue)
setLightFor
in interface IChunk
setLightFor
in class Chunk
public int getLightSubtracted(BlockPos pos, int amount, boolean hasSkylight)
getLightSubtracted
in interface IChunk
getLightSubtracted
in class Chunk
public void addEntity(Entity entityIn)
public void removeEntity(Entity entityIn)
removeEntity
in class Chunk
public void removeEntityAtIndex(Entity entityIn, int index)
removeEntityAtIndex
in class Chunk
public boolean canSeeSky(BlockPos pos)
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType creationMode)
getTileEntity
in class Chunk
public void addTileEntity(TileEntity tileEntityIn)
addTileEntity
in class Chunk
public void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
addTileEntity
in interface IChunk
addTileEntity
in class Chunk
public void removeTileEntity(BlockPos pos)
removeTileEntity
in interface IChunk
removeTileEntity
in class Chunk
public void getEntitiesWithinAABBForEntity(@Nullable Entity entityIn, AxisAlignedBB aabb, java.util.List<Entity> listToFill, java.util.function.Predicate<? super Entity> filter)
getEntitiesWithinAABBForEntity
in class Chunk
public <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 Chunk
public boolean needsSaving(boolean p_76601_1_)
needsSaving
in class Chunk
public boolean isEmptyBetween(int startY, int endY)
isEmptyBetween
in class Chunk