Package net.minecraft.world.chunk
Class ChunkCache
java.lang.Object
net.minecraft.world.chunk.ChunkCache
- All Implemented Interfaces:
BlockView
,CollisionView
,HeightLimitView
public class ChunkCache extends Object implements BlockView, CollisionView
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChunkCache(World world, BlockPos minPos, BlockPos maxPos)
-
Method Summary
Modifier and Type Method Description BlockEntity
getBlockEntity(BlockPos pos)
BlockState
getBlockState(BlockPos pos)
int
getBottomSectionLimit()
Stream<VoxelShape>
getCollisions(Entity entity, Box box, Predicate<Entity> predicate)
Stream<VoxelShape>
getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)
BlockView
getExistingChunk(int chunkX, int chunkZ)
FluidState
getFluidState(BlockPos pos)
int
getSectionCount()
WorldBorder
getWorldBorder()
private Chunk
method_22353(int int2, int int3)
private Chunk
method_22354(BlockPos blockPos)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.HeightLimitView
getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Field Details
-
minX
protected final int minX -
minZ
protected final int minZ -
chunks
-
empty
protected boolean empty -
world
-
-
Constructor Details
-
ChunkCache
-
-
Method Details
-
method_22354
-
method_22353
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceCollisionView
-
getExistingChunk
- Specified by:
getExistingChunk
in interfaceCollisionView
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockView
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockView
-
getEntityCollisions
public Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getEntityCollisions
in interfaceCollisionView
-
getCollisions
public Stream<VoxelShape> getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getCollisions
in interfaceCollisionView
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCount
in interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimit
in interfaceHeightLimitView
-