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
named net/minecraft/world/CollisionView
intermediary net/minecraft/class_1941
official dgq
  • Method Details

    • getWorldBorder

      WorldBorder getWorldBorder()
      Mappings:
      Namespace Name Mixin selector
      named getWorldBorder Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
      intermediary method_8621 Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;
      official F_ Ldgq;F_()Ldzk;
    • getChunkAsView

      @Nullable @Nullable BlockView getChunkAsView(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      named getChunkAsView Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
      intermediary method_22338 Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;
      official c Ldgq;c(II)Ldgm;
    • doesNotIntersectEntities

      default boolean doesNotIntersectEntities(@Nullable @Nullable Entity except, VoxelShape shape)
      Returns true if shape does not intersect with non-spectator entities except except.
      Returns:
      true if shape does not intersect with non-spectator entities except except
      Implementation Note:
      This always returns true if shape is empty.
      Mappings:
      Namespace Name Mixin selector
      named doesNotIntersectEntities Lnet/minecraft/world/CollisionView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;)Z
      intermediary method_8611 Lnet/minecraft/class_1941;method_8611(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;)Z
      official a Ldgq;a(Lbvj;Lfcr;)Z
    • canPlace

      default boolean canPlace(BlockState state, BlockPos pos, ShapeContext context)
      Mappings:
      Namespace Name Mixin selector
      named canPlace Lnet/minecraft/world/CollisionView;canPlace(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Z
      intermediary method_8628 Lnet/minecraft/class_1941;method_8628(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Z
      official a Ldgq;a(Ldxu;Ljh;Lfcc;)Z
    • doesNotIntersectEntities

      default boolean doesNotIntersectEntities(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named doesNotIntersectEntities Lnet/minecraft/world/CollisionView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;)Z
      intermediary method_8606 Lnet/minecraft/class_1941;method_8606(Lnet/minecraft/class_1297;)Z
      official f Ldgq;f(Lbvj;)Z
    • isSpaceEmpty

      default boolean isSpaceEmpty(Box box)
      Mappings:
      Namespace Name Mixin selector
      named isSpaceEmpty Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/util/math/Box;)Z
      intermediary method_18026 Lnet/minecraft/class_1941;method_18026(Lnet/minecraft/class_238;)Z
      official b Ldgq;b(Lfbs;)Z
    • isSpaceEmpty

      default boolean isSpaceEmpty(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named isSpaceEmpty Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;)Z
      intermediary method_17892 Lnet/minecraft/class_1941;method_17892(Lnet/minecraft/class_1297;)Z
      official g Ldgq;g(Lbvj;)Z
    • isSpaceEmpty

      default boolean isSpaceEmpty(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named isSpaceEmpty Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
      intermediary method_8587 Lnet/minecraft/class_1941;method_8587(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z
      official a Ldgq;a(Lbvj;Lfbs;)Z
    • isSpaceEmpty

      default boolean isSpaceEmpty(@Nullable @Nullable Entity entity, Box box, boolean checkFluid)
      Mappings:
      Namespace Name Mixin selector
      named isSpaceEmpty Lnet/minecraft/world/CollisionView;isSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Z)Z
      intermediary method_61716 Lnet/minecraft/class_1941;method_61716(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Z)Z
      official a Ldgq;a(Lbvj;Lfbs;Z)Z
    • isBlockSpaceEmpty

      default boolean isBlockSpaceEmpty(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named isBlockSpaceEmpty Lnet/minecraft/world/CollisionView;isBlockSpaceEmpty(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
      intermediary method_52569 Lnet/minecraft/class_1941;method_52569(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z
      official b Ldgq;b(Lbvj;Lfbs;)Z
    • getEntityCollisions

      List<VoxelShape> getEntityCollisions(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getEntityCollisions Lnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
      intermediary method_20743 Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;
      official c Ldgq;c(Lbvj;Lfbs;)Ljava/util/List;
    • getCollisions

      default Iterable<VoxelShape> getCollisions(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getCollisions Lnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
      intermediary method_8600 Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;
      official d Ldgq;d(Lbvj;Lfbs;)Ljava/lang/Iterable;
    • getBlockCollisions

      default Iterable<VoxelShape> getBlockCollisions(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getBlockCollisions Lnet/minecraft/world/CollisionView;getBlockCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
      intermediary method_20812 Lnet/minecraft/class_1941;method_20812(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;
      official e Ldgq;e(Lbvj;Lfbs;)Ljava/lang/Iterable;
    • getBlockOrFluidCollisions

      default Iterable<VoxelShape> getBlockOrFluidCollisions(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getBlockOrFluidCollisions Lnet/minecraft/world/CollisionView;getBlockOrFluidCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/lang/Iterable;
      intermediary method_61719 Lnet/minecraft/class_1941;method_61719(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/lang/Iterable;
      official f Ldgq;f(Lbvj;Lfbs;)Ljava/lang/Iterable;
    • getWorldBorderCollisions

      @Nullable private @Nullable VoxelShape getWorldBorderCollisions(Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getWorldBorderCollisions Lnet/minecraft/world/CollisionView;getWorldBorderCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/shape/VoxelShape;
      intermediary method_39455 Lnet/minecraft/class_1941;method_39455(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Lnet/minecraft/class_265;
      official i Ldgq;i(Lbvj;Lfbs;)Lfcr;
    • getCollisionsIncludingWorldBorder

      default BlockHitResult getCollisionsIncludingWorldBorder(RaycastContext context)
      Mappings:
      Namespace Name Mixin selector
      named getCollisionsIncludingWorldBorder Lnet/minecraft/world/CollisionView;getCollisionsIncludingWorldBorder(Lnet/minecraft/world/RaycastContext;)Lnet/minecraft/util/hit/BlockHitResult;
      intermediary method_61717 Lnet/minecraft/class_1941;method_61717(Lnet/minecraft/class_3959;)Lnet/minecraft/class_3965;
      official b Ldgq;b(Ldgp;)Lfbt;
    • canCollide

      default boolean canCollide(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named canCollide Lnet/minecraft/world/CollisionView;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
      intermediary method_39454 Lnet/minecraft/class_1941;method_39454(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z
      official g Ldgq;g(Lbvj;Lfbs;)Z
    • findSupportingBlockPos

      default Optional<BlockPos> findSupportingBlockPos(Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named findSupportingBlockPos Lnet/minecraft/world/CollisionView;findSupportingBlockPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/Optional;
      intermediary method_51718 Lnet/minecraft/class_1941;method_51718(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/Optional;
      official h Ldgq;h(Lbvj;Lfbs;)Ljava/util/Optional;
    • findClosestCollision

      default Optional<Vec3d> findClosestCollision(@Nullable @Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Ldgq;a(Lbvj;Lfcr;Lfbx;DDD)Ljava/util/Optional;