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 VoxelShapeborderCollision(Entity entity, AABB box) default BlockHitResultclipIncludingBorder(ClipContext clipContext) default booleancollidesWithSuffocatingBlock(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> getBlockAndLiquidCollisions(Entity entity, AABB collisionBox) 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 booleanisUnobstructed(Entity entity) default booleanisUnobstructed(Entity entity, VoxelShape shape) default booleanisUnobstructed(BlockState state, BlockPos pos, CollisionContext context) default booleannoBlockCollision(Entity entity, AABB boundingBox) default booleannoCollision(Entity entity) default booleannoCollision(Entity entity, AABB collisionBox) default booleannoCollision(Entity entity, AABB collisionBox, boolean checkLiquid) default booleannoCollision(AABB collisionBox) Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods 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
-
getBlockCollisions
-
getBlockAndLiquidCollisions
default Iterable<VoxelShape> getBlockAndLiquidCollisions(@Nullable Entity entity, AABB collisionBox) -
borderCollision
-
clipIncludingBorder
-
collidesWithSuffocatingBlock
-
findSupportingBlock
-
findFreePosition
default Optional<Vec3> findFreePosition(@Nullable Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z)
-