public class EmptyChunk extends Chunk
Chunk.CreateEntityType
EMPTY_SECTION
コンストラクタと説明 |
---|
EmptyChunk(World worldIn,
ChunkPos p_i49950_2_) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addEntity(Entity entityIn)
Adds an entity to the chunk.
|
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)
Gets all entities that can be assigned to the specified class.
|
void |
getEntitiesWithinAABBForEntity(Entity entityIn,
AxisAlignedBB aabb,
java.util.List<Entity> listToFill,
java.util.function.Predicate<? super Entity> filter)
Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity.
|
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)
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
|
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) |
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
public BlockState getBlockState(BlockPos pos)
getBlockState
インタフェース内 IBlockReader
getBlockState
クラス内 Chunk
@Nullable public BlockState setBlockState(BlockPos pos, BlockState state, boolean isMoving)
setBlockState
インタフェース内 IChunk
setBlockState
クラス内 Chunk
public IFluidState getFluidState(BlockPos pos)
getFluidState
インタフェース内 IBlockReader
getFluidState
クラス内 Chunk
@Nullable public WorldLightManager getWorldLightManager()
getWorldLightManager
クラス内 Chunk
public int getLightValue(BlockPos pos)
public void addEntity(Entity entityIn)
public void removeEntity(Entity entityIn)
removeEntity
クラス内 Chunk
public void removeEntityAtIndex(Entity entityIn, int index)
removeEntityAtIndex
クラス内 Chunk
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.CreateEntityType creationMode)
getTileEntity
クラス内 Chunk
public void addTileEntity(TileEntity tileEntityIn)
addTileEntity
クラス内 Chunk
public void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
addTileEntity
インタフェース内 IChunk
addTileEntity
クラス内 Chunk
public void removeTileEntity(BlockPos pos)
removeTileEntity
インタフェース内 IChunk
removeTileEntity
クラス内 Chunk
public void markDirty()
public void getEntitiesWithinAABBForEntity(@Nullable Entity entityIn, AxisAlignedBB aabb, java.util.List<Entity> listToFill, java.util.function.Predicate<? super Entity> filter)
getEntitiesWithinAABBForEntity
クラス内 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
クラス内 Chunk
public boolean isEmptyBetween(int startY, int endY)
public ChunkHolder.LocationType getLocationType()
getLocationType
クラス内 Chunk