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 bznintermediary net/minecraft/class_1941named net/minecraft/world/CollisionView
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanCollide(@Nullable Entity entity, Box box) default booleancanPlace(BlockState state, BlockPos pos, ShapeContext context) findClosestCollision(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) 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 booleanintersectsEntities(@Nullable Entity except, VoxelShape shape) default booleanintersectsEntities(Entity entity) default booleanisSpaceEmpty(@Nullable Entity entity, Box box) default booleanisSpaceEmpty(Entity entity) default booleanisSpaceEmpty(Box box) Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, 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 p_Lbzn;p_()Lcpt;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 cLbzn;c(II)Lbzj;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 aLbzn;a(Lawt;Ldpf;)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 aLbzn;a(Lcoc;Lgh;Ldor;)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 fLbzn;f(Lawt;)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 bLbzn;b(Ldoh;)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 gLbzn;g(Lawt;)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 aLbzn;a(Lawt;Ldoh;)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
-
getEntityCollisions
- Mappings:
Namespace Name Mixin selector official bLbzn;b(Lawt;Ldoh;)Ljava/util/List;intermediary method_20743Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;named getEntityCollisionsLnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
-
getCollisions
- Mappings:
Namespace Name Mixin selector official cLbzn;c(Lawt;Ldoh;)Ljava/lang/Iterable;intermediary method_8600Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;named getCollisionsLnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
-
getBlockCollisions
- Mappings:
Namespace Name Mixin selector official dLbzn;d(Lawt;Ldoh;)Ljava/lang/Iterable;intermediary method_20812Lnet/minecraft/class_1941;method_20812(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;named getBlockCollisionsLnet/minecraft/world/CollisionView;getBlockCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
-
getWorldBorderCollisions
- Mappings:
Namespace Name Mixin selector official fLbzn;f(Lawt;Ldoh;)Ldpf;intermediary method_39455Lnet/minecraft/class_1941;method_39455(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Lnet/minecraft/class_265;named getWorldBorderCollisionsLnet/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 eLbzn;e(Lawt;Ldoh;)Zintermediary method_39454Lnet/minecraft/class_1941;method_39454(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Znamed canCollideLnet/minecraft/world/CollisionView;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
-
findClosestCollision
default Optional<Vec3d> findClosestCollision(@Nullable @Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) - Mappings:
Namespace Name Mixin selector official aLbzn;a(Lawt;Ldpf;Ldom;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 findClosestCollisionLnet/minecraft/world/CollisionView;findClosestCollision(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;DDD)Ljava/util/Optional;
-