Package net.minecraft.world.level
Interface CollisionGetter
- All Superinterfaces:
BlockGetter
,IBlockGetterExtension
,LevelHeightAccessor
- All Known Subinterfaces:
CommonLevelAccessor
,LevelAccessor
,LevelReader
,LevelTimeAccess
,ServerLevelAccessor
,WorldGenLevel
- All Known Implementing Classes:
ClientLevel
,Level
,PathNavigationRegion
,ServerLevel
,WorldGenRegion
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
Field Summary
Fields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
-
Method Summary
Modifier and TypeMethodDescriptionprivate VoxelShape
borderCollision
(Entity pEntity, AABB pBox) default BlockHitResult
clipIncludingBorder
(ClipContext pClipContext) default boolean
collidesWithSuffocatingBlock
(Entity pEntity, AABB pBox) findFreePosition
(Entity pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ) findSupportingBlock
(Entity pEntity, AABB pBox) default Iterable
<VoxelShape> getBlockAndLiquidCollisions
(Entity pEntity, AABB pCollisionBox) default Iterable
<VoxelShape> getBlockCollisions
(Entity pEntity, AABB pCollisionBox) private Iterable
<VoxelShape> getBlockCollisionsFromContext
(CollisionContext pContext, AABB pCollisionBox) getChunkForCollisions
(int pChunkX, int pChunkZ) default Iterable
<VoxelShape> getCollisions
(Entity pEntity, AABB pCollisionBox) getEntityCollisions
(Entity pEntity, AABB pCollisionBox) default Iterable
<VoxelShape> getPreMoveCollisions
(Entity pEntity, AABB pCollisionBox, Vec3 pPos) default boolean
isUnobstructed
(Entity pEntity) default boolean
isUnobstructed
(Entity pEntity, VoxelShape pShape) default boolean
isUnobstructed
(BlockState pState, BlockPos pPos, CollisionContext pContext) default boolean
noBlockCollision
(Entity pEntity, AABB pBoundingBox) default boolean
noCollision
(Entity pEntity) default boolean
noCollision
(Entity pEntity, AABB pCollisionBox) default boolean
noCollision
(Entity pEntity, AABB pCollisionBox, boolean pCheckLiquid) default boolean
noCollision
(AABB pCollisionBox) Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLine
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getHeight, getMaxSectionY, getMaxY, getMinSectionY, getMinY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
Method Details
-
getWorldBorder
WorldBorder getWorldBorder() -
getChunkForCollisions
-
isUnobstructed
-
isUnobstructed
-
isUnobstructed
-
noCollision
-
noCollision
-
noCollision
-
noCollision
-
noBlockCollision
-
getEntityCollisions
-
getCollisions
-
getPreMoveCollisions
default Iterable<VoxelShape> getPreMoveCollisions(@Nullable Entity pEntity, AABB pCollisionBox, Vec3 pPos) -
getBlockCollisions
-
getBlockAndLiquidCollisions
default Iterable<VoxelShape> getBlockAndLiquidCollisions(@Nullable Entity pEntity, AABB pCollisionBox) -
getBlockCollisionsFromContext
private Iterable<VoxelShape> getBlockCollisionsFromContext(CollisionContext pContext, AABB pCollisionBox) -
borderCollision
-
clipIncludingBorder
-
collidesWithSuffocatingBlock
-
findSupportingBlock
-
findFreePosition
default Optional<Vec3> findFreePosition(@Nullable Entity pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ)
-