Package net.minecraft.world
Interface ICollisionReader
-
- All Superinterfaces:
IBlockReader
- All Known Subinterfaces:
IBiomeReader
,IDayTimeReader
,ISeedReader
,IServerWorld
,IWorld
,IWorldReader
- All Known Implementing Classes:
ClientWorld
,Region
,ServerWorld
,World
,WorldGenRegion
public interface ICollisionReader extends IBlockReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.stream.Stream<VoxelShape>
getBlockCollisions(Entity p_226666_1_, AxisAlignedBB p_226666_2_)
default java.util.stream.Stream<VoxelShape>
getBlockCollisions(Entity p_241457_1_, AxisAlignedBB p_241457_2_, java.util.function.BiPredicate<BlockState,BlockPos> p_241457_3_)
IBlockReader
getChunkForCollisions(int p_225522_1_, int p_225522_2_)
default java.util.stream.Stream<VoxelShape>
getCollisions(Entity p_234867_1_, AxisAlignedBB p_234867_2_, java.util.function.Predicate<Entity> p_234867_3_)
java.util.stream.Stream<VoxelShape>
getEntityCollisions(Entity p_230318_1_, AxisAlignedBB p_230318_2_, java.util.function.Predicate<Entity> p_230318_3_)
WorldBorder
getWorldBorder()
default boolean
isUnobstructed(BlockState p_226663_1_, BlockPos p_226663_2_, ISelectionContext p_226663_3_)
default boolean
isUnobstructed(Entity p_226668_1_)
default boolean
isUnobstructed(Entity p_195585_1_, VoxelShape p_195585_2_)
default boolean
noBlockCollision(Entity p_242405_1_, AxisAlignedBB p_242405_2_, java.util.function.BiPredicate<BlockState,BlockPos> p_242405_3_)
default boolean
noCollision(Entity p_226669_1_)
default boolean
noCollision(Entity p_226665_1_, AxisAlignedBB p_226665_2_)
default boolean
noCollision(Entity p_234865_1_, AxisAlignedBB p_234865_2_, java.util.function.Predicate<Entity> p_234865_3_)
default boolean
noCollision(AxisAlignedBB p_226664_1_)
-
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxBuildHeight, getMaxLightLevel
-
-
-
-
Method Detail
-
getWorldBorder
WorldBorder getWorldBorder()
-
getChunkForCollisions
@Nullable IBlockReader getChunkForCollisions(int p_225522_1_, int p_225522_2_)
-
isUnobstructed
default boolean isUnobstructed(@Nullable Entity p_195585_1_, VoxelShape p_195585_2_)
-
isUnobstructed
default boolean isUnobstructed(BlockState p_226663_1_, BlockPos p_226663_2_, ISelectionContext p_226663_3_)
-
isUnobstructed
default boolean isUnobstructed(Entity p_226668_1_)
-
noCollision
default boolean noCollision(AxisAlignedBB p_226664_1_)
-
noCollision
default boolean noCollision(Entity p_226669_1_)
-
noCollision
default boolean noCollision(Entity p_226665_1_, AxisAlignedBB p_226665_2_)
-
noCollision
default boolean noCollision(@Nullable Entity p_234865_1_, AxisAlignedBB p_234865_2_, java.util.function.Predicate<Entity> p_234865_3_)
-
getEntityCollisions
java.util.stream.Stream<VoxelShape> getEntityCollisions(@Nullable Entity p_230318_1_, AxisAlignedBB p_230318_2_, java.util.function.Predicate<Entity> p_230318_3_)
-
getCollisions
default java.util.stream.Stream<VoxelShape> getCollisions(@Nullable Entity p_234867_1_, AxisAlignedBB p_234867_2_, java.util.function.Predicate<Entity> p_234867_3_)
-
getBlockCollisions
default java.util.stream.Stream<VoxelShape> getBlockCollisions(@Nullable Entity p_226666_1_, AxisAlignedBB p_226666_2_)
-
noBlockCollision
default boolean noBlockCollision(@Nullable Entity p_242405_1_, AxisAlignedBB p_242405_2_, java.util.function.BiPredicate<BlockState,BlockPos> p_242405_3_)
-
getBlockCollisions
default java.util.stream.Stream<VoxelShape> getBlockCollisions(@Nullable Entity p_241457_1_, AxisAlignedBB p_241457_2_, java.util.function.BiPredicate<BlockState,BlockPos> p_241457_3_)
-
-