Package net.minecraft.world.chunk
Class ChunkCache
java.lang.Object
net.minecraft.world.chunk.ChunkCache
- All Implemented Interfaces:
BlockView,CollisionView
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 BlockEntitygetBlockEntity(BlockPos pos)BlockStategetBlockState(BlockPos pos)Stream<VoxelShape>getCollisions(Entity entity, Box box, Predicate<Entity> predicate)Stream<VoxelShape>getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)BlockViewgetExistingChunk(int chunkX, int chunkZ)FluidStategetFluidState(BlockPos pos)WorldBordergetWorldBorder()private Chunkmethod_22353(int int2, int int3)private Chunkmethod_22354(BlockPos blockPos)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
-
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:
getWorldBorderin interfaceCollisionView
-
getExistingChunk
- Specified by:
getExistingChunkin interfaceCollisionView
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockView
-
getEntityCollisions
public Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getEntityCollisionsin interfaceCollisionView
-
getCollisions
public Stream<VoxelShape> getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getCollisionsin interfaceCollisionView
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockView
-