Package net.minecraft.world.level
Interface CollisionGetter
- All Superinterfaces:
BlockGetter,IBlockGetterExtension,LevelHeightAccessor
- All Known Subinterfaces:
CommonLevelAccessor,LevelAccessor,LevelReader,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 -
Method Summary
Modifier and TypeMethodDescriptionprivate @Nullable VoxelShapeborderCollision(Entity entity, AABB box) default BlockHitResultclipIncludingBorder(ClipContext clipContext) default booleancollidesWithSuffocatingBlock(@Nullable Entity entity, AABB box) findFreePosition(@Nullable Entity entity, VoxelShape allowedCenters, Vec3 pos, double x, double y, double z) findSupportingBlock(Entity entity, AABB box) default Iterable<VoxelShape> getBlockAndLiquidCollisions(@Nullable Entity entity, AABB collisionBox) default Iterable<VoxelShape> getBlockCollisions(@Nullable Entity entity, AABB collisionBox) private Iterable<VoxelShape> getBlockCollisionsFromContext(CollisionContext context, AABB collisionBox) @Nullable BlockGettergetChunkForCollisions(int chunkX, int chunkZ) default Iterable<VoxelShape> getCollisions(@Nullable Entity entity, AABB collisionBox) getEntityCollisions(@Nullable Entity entity, AABB collisionBox) default Iterable<VoxelShape> getPreMoveCollisions(@Nullable Entity entity, AABB collisionBox, Vec3 pos) default booleanisUnobstructed(@Nullable Entity entity, VoxelShape shape) default booleanisUnobstructed(Entity entity) default booleanisUnobstructed(BlockState state, BlockPos pos, CollisionContext context) default booleannoBlockCollision(@Nullable Entity entity, AABB boundingBox) default booleannoBlockCollision(@Nullable Entity entity, AABB boundingBox, boolean checkLiquid) default booleannoBorderCollision(@Nullable Entity entity, AABB boundingBox) default booleannoCollision(@Nullable Entity entity, AABB collisionBox) default booleannoCollision(@Nullable Entity entity, AABB collisionBox, boolean checkLiquid) default booleannoCollision(Entity entity) default booleannoCollision(AABB collisionBox) default booleannoEntityCollision(@Nullable Entity entity, AABB boundIngBox) 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
-
noBlockCollision
-
noEntityCollision
-
noBorderCollision
-
getEntityCollisions
-
getCollisions
-
getPreMoveCollisions
default Iterable<VoxelShape> getPreMoveCollisions(@Nullable Entity entity, AABB collisionBox, Vec3 pos) -
getBlockCollisions
-
getBlockAndLiquidCollisions
default Iterable<VoxelShape> getBlockAndLiquidCollisions(@Nullable Entity entity, AABB collisionBox) -
getBlockCollisionsFromContext
private Iterable<VoxelShape> getBlockCollisionsFromContext(CollisionContext context, AABB collisionBox) -
borderCollision
-
clipIncludingBorder
-
collidesWithSuffocatingBlock
-
findSupportingBlock
-
findFreePosition
default Optional<Vec3> findFreePosition(@Nullable Entity entity, VoxelShape allowedCenters, Vec3 pos, double x, double y, double z)
-