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
- Mappings:
- Namespace - Name - official - clw- intermediary - net/minecraft/class_1941- named - net/minecraft/world/CollisionView
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleancanCollide(@Nullable Entity entity, Box box) default booleancanPlace(BlockState state, BlockPos pos, ShapeContext context) default booleandoesNotIntersectEntities(@Nullable Entity except, VoxelShape shape) Returnstrueifshapedoes not intersect with non-spectator entities exceptexcept.default booleandoesNotIntersectEntities(Entity entity) findClosestCollision(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) findSupportingBlockPos(Entity entity, Box box) default Iterable<VoxelShape>getBlockCollisions(@Nullable Entity entity, Box box) getChunkAsView(int chunkX, int chunkZ) default Iterable<VoxelShape>getCollisions(@Nullable Entity entity, Box box) getEntityCollisions(@Nullable Entity entity, Box box) private @Nullable VoxelShapegetWorldBorderCollisions(Entity entity, Box box) default booleanisSpaceEmpty(@Nullable Entity entity, Box box) default booleanisSpaceEmpty(Entity entity) default booleanisSpaceEmpty(Box box) Methods inherited from interface net.minecraft.world.BlockViewgetBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitViewcountVerticalSections, getBottomSectionCoord, getBottomY, getHeight, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
- 
Method Details- 
getWorldBorderWorldBorder getWorldBorder()- Mappings:
- Namespace - Name - Mixin selector - official - w_- Lclw;w_()Ldds;- intermediary - method_8621- Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;- named - getWorldBorder- Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
 
- 
getChunkAsView- Mappings:
- Namespace - Name - Mixin selector - official - c- Lclw;c(II)Lcls;- intermediary - method_22338- Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;- named - getChunkAsView- Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
 
- 
doesNotIntersectEntitiesReturnstrueifshapedoes not intersect with non-spectator entities exceptexcept.- Returns:
- trueif- shapedoes not intersect with non-spectator entities except- except
- Implementation Note:
- This always returns trueifshapeis empty.
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lclw;a(Lbfj;Lefb;)Z- intermediary - method_8611- Lnet/minecraft/class_1941;method_8611(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;)Z- named - doesNotIntersectEntities- Lnet/minecraft/world/CollisionView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;)Z
 
- 
canPlace- Mappings:
- Namespace - Name - Mixin selector - official - a- Lclw;a(Ldcb;Lgu;Leen;)Z- intermediary - method_8628- Lnet/minecraft/class_1941;method_8628(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Z- named - canPlace- Lnet/minecraft/world/CollisionView;canPlace(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Z
 
- 
doesNotIntersectEntities- Mappings:
- Namespace - Name - Mixin selector - official - f- Lclw;f(Lbfj;)Z- intermediary - method_8606- Lnet/minecraft/class_1941;method_8606(Lnet/minecraft/class_1297;)Z- named - doesNotIntersectEntities- Lnet/minecraft/world/CollisionView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;)Z
 
- 
isSpaceEmpty- Mappings:
- Namespace - Name - Mixin selector - official - b- Lclw;b(Leed;)Z- intermediary - method_18026- Lnet/minecraft/class_1941;method_18026(Lnet/minecraft/class_238;)Z- named - isSpaceEmpty- Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/util/math/Box;)Z
 
- 
isSpaceEmpty- Mappings:
- Namespace - Name - Mixin selector - official - g- Lclw;g(Lbfj;)Z- intermediary - method_17892- Lnet/minecraft/class_1941;method_17892(Lnet/minecraft/class_1297;)Z- named - isSpaceEmpty- Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;)Z
 
- 
isSpaceEmpty- Mappings:
- Namespace - Name - Mixin selector - official - a- Lclw;a(Lbfj;Leed;)Z- intermediary - method_8587- Lnet/minecraft/class_1941;method_8587(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z- named - isSpaceEmpty- Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
 
- 
getEntityCollisions- Mappings:
- Namespace - Name - Mixin selector - official - b- Lclw;b(Lbfj;Leed;)Ljava/util/List;- intermediary - method_20743- Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;- named - getEntityCollisions- Lnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
 
- 
getCollisions- Mappings:
- Namespace - Name - Mixin selector - official - c- Lclw;c(Lbfj;Leed;)Ljava/lang/Iterable;- intermediary - method_8600- Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;- named - getCollisions- Lnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
 
- 
getBlockCollisions- Mappings:
- Namespace - Name - Mixin selector - official - d- Lclw;d(Lbfj;Leed;)Ljava/lang/Iterable;- intermediary - method_20812- Lnet/minecraft/class_1941;method_20812(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;- named - getBlockCollisions- Lnet/minecraft/world/CollisionView;getBlockCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
 
- 
getWorldBorderCollisions- Mappings:
- Namespace - Name - Mixin selector - official - g- Lclw;g(Lbfj;Leed;)Lefb;- intermediary - method_39455- Lnet/minecraft/class_1941;method_39455(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Lnet/minecraft/class_265;- named - getWorldBorderCollisions- Lnet/minecraft/world/CollisionView;getWorldBorderCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/shape/VoxelShape;
 
- 
canCollide- Mappings:
- Namespace - Name - Mixin selector - official - e- Lclw;e(Lbfj;Leed;)Z- intermediary - method_39454- Lnet/minecraft/class_1941;method_39454(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z- named - canCollide- Lnet/minecraft/world/CollisionView;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
 
- 
findSupportingBlockPos- Mappings:
- Namespace - Name - Mixin selector - official - f- Lclw;f(Lbfj;Leed;)Ljava/util/Optional;- intermediary - method_51718- Lnet/minecraft/class_1941;method_51718(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/Optional;- named - findSupportingBlockPos- Lnet/minecraft/world/CollisionView;findSupportingBlockPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/Optional;
 
- 
findClosestCollisiondefault Optional<Vec3d> findClosestCollision(@Nullable @Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lclw;a(Lbfj;Lefb;Leei;DDD)Ljava/util/Optional;- intermediary - method_33594- Lnet/minecraft/class_1941;method_33594(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;Lnet/minecraft/class_243;DDD)Ljava/util/Optional;- named - findClosestCollision- Lnet/minecraft/world/CollisionView;findClosestCollision(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;DDD)Ljava/util/Optional;
 
 
-