Package net.minecraft.world
Interface CollisionView
- All Superinterfaces:
BlockView,HeightLimitView
- All Known Subinterfaces:
RegistryWorldView,ServerWorldAccess,StructureWorldAccess,WorldAccess,WorldView
- All Known Implementing Classes:
ChunkCache,ChunkRegion,ClientWorld,ServerWorld,World
- Mappings:
Namespace Name named net/minecraft/world/CollisionViewintermediary net/minecraft/class_1941official dvx
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.BlockView
BlockView.CollisionVisitor -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanCollide(@Nullable Entity entity, Box box) default booleancanPlace(BlockState state, BlockPos pos, ShapeContext context) default booleandoesNotCollideWithEntities(@Nullable Entity entity, Box box) default booleandoesNotCollideWithWorldBorder(@Nullable Entity entity, Box box) 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) private Iterable<VoxelShape> getBlockOrFluidCollisions(ShapeContext shapeContext, Box box) default Iterable<VoxelShape> getBlockOrFluidCollisions(@Nullable Entity entity, Box box) @Nullable BlockViewgetChunkAsView(int chunkX, int chunkZ) default Iterable<VoxelShape> getCollisions(@Nullable Entity entity, Box box) default Iterable<VoxelShape> getCollisions(@Nullable Entity entity, Box box, Vec3d pos) default BlockHitResultgetEntityCollisions(@Nullable Entity entity, Box box) private @Nullable VoxelShapegetWorldBorderCollisions(Entity entity, Box box) default booleanisBlockSpaceEmpty(@Nullable Entity entity, Box box) default booleanisBlockSpaceEmpty(@Nullable Entity entity, Box box, boolean blockOrFluid) default booleanisSpaceEmpty(@Nullable Entity entity, Box box) default booleanisSpaceEmpty(@Nullable Entity entity, Box box, boolean checkFluid) default booleanisSpaceEmpty(Entity entity) default booleanisSpaceEmpty(Box box) Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getBottomY, getHeight, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Method Details
-
getWorldBorder
WorldBorder getWorldBorder()- Mappings:
Namespace Name Mixin selector named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;official wLdvx;w()Leqa;
-
getChunkAsView
- Mappings:
Namespace Name Mixin selector named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;official cLdvx;c(II)Ldvt;
-
doesNotIntersectEntities
Returnstrueifshapedoes not intersect with non-spectator entities exceptexcept.- Returns:
trueifshapedoes not intersect with non-spectator entities exceptexcept- Implementation Note:
- This always returns
trueifshapeis empty. - Mappings:
Namespace Name Mixin selector named doesNotIntersectEntitiesLnet/minecraft/world/CollisionView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;)Zintermediary method_8611Lnet/minecraft/class_1941;method_8611(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;)Zofficial aLdvx;a(Lcgk;Lfug;)Z
-
canPlace
- Mappings:
Namespace Name Mixin selector named canPlaceLnet/minecraft/world/CollisionView;canPlace(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Zintermediary method_8628Lnet/minecraft/class_1941;method_8628(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Zofficial aLdvx;a(Leoh;Lis;Lftr;)Z
-
doesNotIntersectEntities
- Mappings:
Namespace Name Mixin selector named doesNotIntersectEntitiesLnet/minecraft/world/CollisionView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;)Zintermediary method_8606Lnet/minecraft/class_1941;method_8606(Lnet/minecraft/class_1297;)Zofficial fLdvx;f(Lcgk;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/util/math/Box;)Zintermediary method_18026Lnet/minecraft/class_1941;method_18026(Lnet/minecraft/class_238;)Zofficial bLdvx;b(Lfth;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;)Zintermediary method_17892Lnet/minecraft/class_1941;method_17892(Lnet/minecraft/class_1297;)Zofficial gLdvx;g(Lcgk;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Zintermediary method_8587Lnet/minecraft/class_1941;method_8587(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Zofficial aLdvx;a(Lcgk;Lfth;)Z
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isSpaceEmptyLnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Z)Zintermediary method_61716Lnet/minecraft/class_1941;method_61716(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Z)Zofficial aLdvx;a(Lcgk;Lfth;Z)Z
-
isBlockSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isBlockSpaceEmptyLnet/minecraft/world/CollisionView;isBlockSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Zintermediary method_52569Lnet/minecraft/class_1941;method_52569(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Zofficial bLdvx;b(Lcgk;Lfth;)Z
-
isBlockSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isBlockSpaceEmptyLnet/minecraft/world/CollisionView;isBlockSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Z)Zintermediary method_76791Lnet/minecraft/class_1941;method_76791(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Z)Zofficial bLdvx;b(Lcgk;Lfth;Z)Z
-
doesNotCollideWithEntities
- Mappings:
Namespace Name Mixin selector named doesNotCollideWithEntitiesLnet/minecraft/world/CollisionView;doesNotCollideWithEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Zintermediary method_76792Lnet/minecraft/class_1941;method_76792(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Zofficial cLdvx;c(Lcgk;Lfth;)Z
-
doesNotCollideWithWorldBorder
- Mappings:
Namespace Name Mixin selector named doesNotCollideWithWorldBorderLnet/minecraft/world/CollisionView;doesNotCollideWithWorldBorder(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Zintermediary method_76793Lnet/minecraft/class_1941;method_76793(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Zofficial dLdvx;d(Lcgk;Lfth;)Z
-
getEntityCollisions
- Mappings:
Namespace Name Mixin selector named getEntityCollisionsLnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;intermediary method_20743Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;official eLdvx;e(Lcgk;Lfth;)Ljava/util/List;
-
getCollisions
- Mappings:
Namespace Name Mixin selector named getCollisionsLnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;intermediary method_8600Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;official fLdvx;f(Lcgk;Lfth;)Ljava/lang/Iterable;
-
getCollisions
- Mappings:
Namespace Name Mixin selector named getCollisionsLnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Lnet/minecraft/util/math/Vec3d;)Ljava/lang/Iterable;intermediary method_71395Lnet/minecraft/class_1941;method_71395(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Lnet/minecraft/class_243;)Ljava/lang/Iterable;official aLdvx;a(Lcgk;Lfth;Lftm;)Ljava/lang/Iterable;
-
getBlockCollisions
- Mappings:
Namespace Name Mixin selector named getBlockCollisionsLnet/minecraft/world/CollisionView;getBlockCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;intermediary method_20812Lnet/minecraft/class_1941;method_20812(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;official gLdvx;g(Lcgk;Lfth;)Ljava/lang/Iterable;
-
getBlockOrFluidCollisions
- Mappings:
Namespace Name Mixin selector named getBlockOrFluidCollisionsLnet/minecraft/world/CollisionView;getBlockOrFluidCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;intermediary method_61719Lnet/minecraft/class_1941;method_61719(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;official hLdvx;h(Lcgk;Lfth;)Ljava/lang/Iterable;
-
getBlockOrFluidCollisions
- Mappings:
Namespace Name Mixin selector named getBlockOrFluidCollisionsLnet/minecraft/world/CollisionView;getBlockOrFluidCollisions(Lnet/minecraft/block/ShapeContext;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;intermediary method_71396Lnet/minecraft/class_1941;method_71396(Lnet/minecraft/class_3726;Lnet/minecraft/class_238;)Ljava/lang/Iterable;official aLdvx;a(Lftr;Lfth;)Ljava/lang/Iterable;
-
getWorldBorderCollisions
- Mappings:
Namespace Name Mixin selector named getWorldBorderCollisionsLnet/minecraft/world/CollisionView;getWorldBorderCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_39455Lnet/minecraft/class_1941;method_39455(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Lnet/minecraft/class_265;official kLdvx;k(Lcgk;Lfth;)Lfug;
-
getCollisionsIncludingWorldBorder
- Mappings:
Namespace Name Mixin selector named getCollisionsIncludingWorldBorderLnet/minecraft/world/CollisionView;getCollisionsIncludingWorldBorder(Lnet/minecraft/world/RaycastContext;)Lnet/minecraft/util/hit/BlockHitResult;intermediary method_61717Lnet/minecraft/class_1941;method_61717(Lnet/minecraft/class_3959;)Lnet/minecraft/class_3965;official bLdvx;b(Ldvw;)Lfti;
-
canCollide
- Mappings:
Namespace Name Mixin selector named canCollideLnet/minecraft/world/CollisionView;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Zintermediary method_39454Lnet/minecraft/class_1941;method_39454(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Zofficial iLdvx;i(Lcgk;Lfth;)Z
-
findSupportingBlockPos
- Mappings:
Namespace Name Mixin selector named findSupportingBlockPosLnet/minecraft/world/CollisionView;findSupportingBlockPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/Optional;intermediary method_51718Lnet/minecraft/class_1941;method_51718(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/Optional;official jLdvx;j(Lcgk;Lfth;)Ljava/util/Optional;
-
findClosestCollision
default Optional<Vec3d> findClosestCollision(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) - Mappings:
Namespace Name Mixin selector named findClosestCollisionLnet/minecraft/world/CollisionView;findClosestCollision(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;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;official aLdvx;a(Lcgk;Lfug;Lftm;DDD)Ljava/util/Optional;
-