Package net.minecraft.world.level
Interface CollisionGetter
- All Superinterfaces:
BlockGetter,LevelHeightAccessor
- All Known Subinterfaces:
CommonLevelAccessor,LevelAccessor,LevelReader,LevelTimeAccess,ServerLevelAccessor,WorldGenLevel
- All Known Implementing Classes:
ClientLevel,Level,PathNavigationRegion,ServerLevel,WorldGenRegion
-
Method Summary
Modifier and TypeMethodDescriptionfindFreePosition(Entity p_151419_, VoxelShape p_151420_, Vec3 p_151421_, double p_151422_, double p_151423_, double p_151424_)default Stream<VoxelShape>getBlockCollisions(Entity p_45762_, AABB p_45763_)default Stream<VoxelShape>getBlockCollisions(Entity p_45765_, AABB p_45766_, BiPredicate<BlockState,BlockPos> p_45767_)getChunkForCollisions(int p_45774_, int p_45775_)default Stream<VoxelShape>getCollisions(Entity p_45781_, AABB p_45782_, Predicate<Entity> p_45783_)getEntityCollisions(Entity p_45776_, AABB p_45777_, Predicate<Entity> p_45778_)default booleanhasBlockCollision(Entity p_151415_, AABB p_151416_, BiPredicate<BlockState,BlockPos> p_151417_)default booleanisUnobstructed(Entity p_45785_)default booleanisUnobstructed(Entity p_45750_, VoxelShape p_45751_)default booleanisUnobstructed(BlockState p_45753_, BlockPos p_45754_, CollisionContext p_45755_)default booleannoCollision(Entity p_45787_)default booleannoCollision(Entity p_45757_, AABB p_45758_)default booleannoCollision(Entity p_45769_, AABB p_45770_, Predicate<Entity> p_45771_)default booleannoCollision(AABB p_45773_)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.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
-
noCollision
-
getEntityCollisions
-
getCollisions
-
getBlockCollisions
-
hasBlockCollision
default boolean hasBlockCollision(@Nullable Entity p_151415_, AABB p_151416_, BiPredicate<BlockState,BlockPos> p_151417_) -
getBlockCollisions
default Stream<VoxelShape> getBlockCollisions(@Nullable Entity p_45765_, AABB p_45766_, BiPredicate<BlockState,BlockPos> p_45767_) -
findFreePosition
default Optional<Vec3> findFreePosition(@Nullable Entity p_151419_, VoxelShape p_151420_, Vec3 p_151421_, double p_151422_, double p_151423_, double p_151424_)
-