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 VoxelShapeborderCollision(Entity pEntity, AABB pBox) default booleancollidesWithSuffocatingBlock(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> getBlockCollisions(Entity pEntity, AABB pCollisionBox) getChunkForCollisions(int pChunkX, int pChunkZ) default Iterable<VoxelShape> getCollisions(Entity pEntity, AABB pCollisionBox) getEntityCollisions(Entity pEntity, AABB pCollisionBox) default booleanisUnobstructed(Entity pEntity) default booleanisUnobstructed(Entity pEntity, VoxelShape pShape) default booleanisUnobstructed(BlockState pState, BlockPos pPos, CollisionContext pContext) default booleannoBlockCollision(Entity pEntity, AABB pBoundingBox) default booleannoCollision(Entity pEntity) default booleannoCollision(Entity pEntity, AABB pCollisionBox) default booleannoCollision(AABB pCollisionBox) Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods 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 pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ)
-