public class EmptyChunk extends Chunk
Chunk.CreateEntityType
Modifier and Type | Field and Description |
---|---|
private static Biome[] |
BIOMES |
EMPTY_SECTION
Constructor and Description |
---|
EmptyChunk(World worldIn,
ChunkPos p_i49950_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addEntity(Entity entityIn) |
void |
addTileEntity(BlockPos pos,
TileEntity tileEntityIn) |
void |
addTileEntity(TileEntity tileEntityIn) |
BlockState |
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) |
IFluidState |
getFluidState(BlockPos pos) |
int |
getLightValue(BlockPos pos) |
ChunkHolder.LocationType |
getLocationType() |
TileEntity |
getTileEntity(BlockPos pos,
Chunk.CreateEntityType creationMode) |
WorldLightManager |
getWorldLightManager() |
boolean |
isEmpty() |
boolean |
isEmptyBetween(int startY,
int endY) |
void |
markDirty() |
void |
removeEntity(Entity entityIn) |
void |
removeEntityAtIndex(Entity entityIn,
int index) |
void |
removeTileEntity(BlockPos pos) |
BlockState |
setBlockState(BlockPos pos,
BlockState state,
boolean isMoving) |
addStructureReference, addTileEntity, getBiomes, getBlocksToBeTicked, getDeferredTileEntity, getEntitiesWithinAABBForList, getEntityLists, getFluidState, getFluidsToBeTicked, getHeightmap, getHeightmaps, getInhabitedTime, getLightSources, getPackedPositions, getPos, getSections, getStatus, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getTileEntitiesPos, getTileEntity, getTileEntityMap, getTileEntityNBT, getTopBlockY, getUpgradeData, getWorld, getWorldForge, hasLight, isModified, postLoad, postProcess, putStructureStart, read, readCapsFromNBT, rescheduleTicks, saveScheduledTicks, setHasEntities, setHeightmap, setInhabitedTime, setLastSaveTime, setLight, setLoaded, setLocationType, setModified, setStructureReferences, setStructureStarts, writeCapsToNBT
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_201636_b, getCarvingMask, getLastExtendedBlockStorage, getList, getTopFilledSegment, markBlockForPostprocessing
func_217300_a, getHeight, getMaxLightLevel, rayTraceBlocks, rayTraceBlocks
getCapability, getCapability
private static final Biome[] BIOMES
public BlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockReader
getBlockState
in class Chunk
@Nullable public BlockState setBlockState(BlockPos pos, BlockState state, boolean isMoving)
setBlockState
in interface IChunk
setBlockState
in class Chunk
public IFluidState getFluidState(BlockPos pos)
getFluidState
in interface IBlockReader
getFluidState
in class Chunk
@Nullable public WorldLightManager getWorldLightManager()
getWorldLightManager
in class Chunk
public int getLightValue(BlockPos pos)
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
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.CreateEntityType 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 isEmptyBetween(int startY, int endY)
public ChunkHolder.LocationType getLocationType()
getLocationType
in class Chunk