Package net.minecraft.world
Interface CollisionView
- All Superinterfaces:
BlockView,HeightLimitView
- All Known Subinterfaces:
LunarWorldView,RegistryWorldView,ServerWorldAccess,StructureWorldAccess,WorldAccess,WorldView
- All Known Implementing Classes:
ChunkCache,ChunkRegion,ClientWorld,ServerWorld,World
public interface CollisionView extends BlockView
- Mappings:
Namespace Name official btfintermediary net/minecraft/class_1941named net/minecraft/world/CollisionView
-
Method Summary
Modifier and Type Method Description default booleancanPlace(BlockState state, BlockPos pos, ShapeContext context)default Stream<VoxelShape>getBlockCollisions(Entity entity, Box box)default Stream<VoxelShape>getBlockCollisions(Entity entity, Box box, BiPredicate<BlockState,BlockPos> biPredicate)BlockViewgetChunkAsView(int chunkX, int chunkZ)default Stream<VoxelShape>getCollisions(Entity entity, Box box, Predicate<Entity> predicate)Stream<VoxelShape>getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)WorldBordergetWorldBorder()default booleanintersectsEntities(Entity entity)default booleanintersectsEntities(Entity except, VoxelShape shape)default booleanisBlockSpaceEmpty(Entity entity, Box box, BiPredicate<BlockState,BlockPos> biPredicate)default booleanisSpaceEmpty(Entity entity)default booleanisSpaceEmpty(Entity entity, Box box)default booleanisSpaceEmpty(Entity entity, Box box, Predicate<Entity> predicate)default booleanisSpaceEmpty(Box box)default Optional<Vec3d>method_33594(Entity entity, VoxelShape voxelShape, Vec3d vec3d, double double2, double double3, double double4)Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getBottomY, getHeight, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Method Details
-
getWorldBorder
WorldBorder getWorldBorder()- Mappings:
Namespace Name Mixin selector official eLbtf;e()Lcjk;intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
-
getChunkAsView
- Mappings:
Namespace Name Mixin selector official cLbtf;c(II)Lbta;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
-
intersectsEntities
- Mappings:
Namespace Name Mixin selector official aLbtf;a(Laqw;Ldjr;)Zintermediary method_8611Lnet/minecraft/class_1941;method_8611(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;)Znamed intersectsEntitiesLnet/minecraft/world/CollisionView;intersectsEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;)Z
-
canPlace
- Mappings:
Namespace Name Mixin selector official aLbtf;a(Lchu;Lfx;Ldjd;)Zintermediary method_8628Lnet/minecraft/class_1941;method_8628(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Znamed canPlaceLnet/minecraft/world/CollisionView;canPlace(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Z
-
intersectsEntities
- Mappings:
Namespace Name Mixin selector official fLbtf;f(Laqw;)Zintermediary method_8606Lnet/minecraft/class_1941;method_8606(Lnet/minecraft/class_1297;)Znamed intersectsEntitiesLnet/minecraft/world/CollisionView;intersectsEntities(Lnet/minecraft/entity/Entity;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector official bLbtf;b(Ldit;)Zintermediary method_18026Lnet/minecraft/class_1941;method_18026(Lnet/minecraft/class_238;)Znamed isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/util/math/Box;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector official gLbtf;g(Laqw;)Zintermediary method_17892Lnet/minecraft/class_1941;method_17892(Lnet/minecraft/class_1297;)Znamed isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector official a_Lbtf;a_(Laqw;Ldit;)Zintermediary method_8587Lnet/minecraft/class_1941;method_8587(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Znamed isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector official bLbtf;b(Laqw;Ldit;Ljava/util/function/Predicate;)Zintermediary method_8590Lnet/minecraft/class_1941;method_8590(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Znamed isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Z
-
getEntityCollisions
Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Mappings:
Namespace Name Mixin selector official cLbtf;c(Laqw;Ldit;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;intermediary method_20743Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;named getEntityCollisionsLnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
-
getCollisions
default Stream<VoxelShape> getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Mappings:
Namespace Name Mixin selector official dLbtf;d(Laqw;Ldit;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;intermediary method_8600Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;named getCollisionsLnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
-
getBlockCollisions
- Mappings:
Namespace Name Mixin selector official bLbtf;b(Laqw;Ldit;)Ljava/util/stream/Stream;intermediary method_20812Lnet/minecraft/class_1941;method_20812(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/stream/Stream;named getBlockCollisionsLnet/minecraft/world/CollisionView;getBlockCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
-
isBlockSpaceEmpty
@Environment(CLIENT) default boolean isBlockSpaceEmpty(@Nullable Entity entity, Box box, BiPredicate<BlockState,BlockPos> biPredicate)- Mappings:
Namespace Name Mixin selector official aLbtf;a(Laqw;Ldit;Ljava/util/function/BiPredicate;)Zintermediary method_30635Lnet/minecraft/class_1941;method_30635(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)Znamed isBlockSpaceEmptyLnet/minecraft/world/CollisionView;isBlockSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/BiPredicate;)Z
-
getBlockCollisions
default Stream<VoxelShape> getBlockCollisions(@Nullable Entity entity, Box box, BiPredicate<BlockState,BlockPos> biPredicate)- Mappings:
Namespace Name Mixin selector official bLbtf;b(Laqw;Ldit;Ljava/util/function/BiPredicate;)Ljava/util/stream/Stream;intermediary method_30030Lnet/minecraft/class_1941;method_30030(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)Ljava/util/stream/Stream;named getBlockCollisionsLnet/minecraft/world/CollisionView;getBlockCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/BiPredicate;)Ljava/util/stream/Stream;
-
method_33594
default Optional<Vec3d> method_33594(@Nullable Entity entity, VoxelShape voxelShape, Vec3d vec3d, double double2, double double3, double double4)- Mappings:
Namespace Name Mixin selector official aLbtf;a(Laqw;Ldjr;Ldiy;DDD)Ljava/util/Optional;intermediary method_33594Lnet/minecraft/class_1941;method_33594(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;Lnet/minecraft/class_243;DDD)Ljava/util/Optional;named method_33594Lnet/minecraft/world/CollisionView;method_33594(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;DDD)Ljava/util/Optional;
-