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 BlockEntitygetBlockEntity(BlockPos pos)BlockStategetBlockState(BlockPos pos)intgetBottomSectionLimit()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)intgetSectionCount()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, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods 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:
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
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView
-