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
-
Method Summary
Modifier and TypeMethodDescriptionprivate VoxelShape
borderCollision
(Entity entity, AABB box) default boolean
collidesWithSuffocatingBlock
(Entity entity, AABB box) findFreePosition
(Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z) findSupportingBlock
(Entity entity, AABB box) default Iterable
<VoxelShape> getBlockCollisions
(Entity entity, AABB collisionBox) getChunkForCollisions
(int chunkX, int chunkZ) default Iterable
<VoxelShape> getCollisions
(Entity entity, AABB collisionBox) getEntityCollisions
(Entity entity, AABB collisionBox) default boolean
isUnobstructed
(Entity entity) default boolean
isUnobstructed
(Entity entity, VoxelShape shape) default boolean
isUnobstructed
(BlockState state, BlockPos pos, CollisionContext context) default boolean
noBlockCollision
(Entity entity, AABB boundingBox) default boolean
noCollision
(Entity entity) default boolean
noCollision
(Entity entity, AABB collisionBox) default boolean
noCollision
(AABB collisionBox) Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getHeight, getMaxBuildHeight, getMaxSection, getMinBuildHeight, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Method Details
-
getWorldBorder
WorldBorder getWorldBorder() -
getChunkForCollisions
-
isUnobstructed
-
isUnobstructed
-
isUnobstructed
-
noCollision
-
noCollision
-
noCollision
-
noBlockCollision
-
getEntityCollisions
-
getCollisions
-
getBlockCollisions
-
borderCollision
-
collidesWithSuffocatingBlock
-
findSupportingBlock
-
findFreePosition
default Optional<Vec3> findFreePosition(@Nullable Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z)
-