Class CollisionUtil

java.lang.Object
net.jcm.vsch.util.CollisionUtil

public final class CollisionUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.joml.Vector3d
    checkCollision(org.joml.Vector3d movement, net.minecraft.world.level.CollisionGetter level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Matrix4dc voxel2box, org.joml.Matrix4dc box2voxel)
     
    static org.joml.primitives.AABBd
    expandTowards(org.joml.primitives.AABBd box, double x, double y, double z)
     
    static org.joml.primitives.AABBd
    expandTowards(org.joml.primitives.AABBd box, org.joml.Vector3dc vec)
     
    static net.minecraft.core.BlockPos
    findSupportingBlock(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Vector3dc feetPos, org.joml.Matrix4dc box2world)
     
    static net.minecraft.core.BlockPos
    findSupportingBlockNoOrientation(net.minecraft.world.entity.Entity entity, double downExtend)
     
    static boolean
    willCollide(net.minecraft.world.level.CollisionGetter level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Matrix4dc box2voxel, org.joml.Matrix4dc voxel2box, org.joml.Vector3d movement)
     
    static boolean
    willCollideAny(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Matrix4dc box2world, org.joml.Vector3d movement)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • willCollide

      public static boolean willCollide(net.minecraft.world.level.CollisionGetter level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Matrix4dc box2voxel, org.joml.Matrix4dc voxel2box, org.joml.Vector3d movement)
    • willCollideAny

      public static boolean willCollideAny(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Matrix4dc box2world, org.joml.Vector3d movement)
    • checkCollision

      public static org.joml.Vector3d checkCollision(org.joml.Vector3d movement, net.minecraft.world.level.CollisionGetter level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Matrix4dc voxel2box, org.joml.Matrix4dc box2voxel)
    • findSupportingBlockNoOrientation

      public static net.minecraft.core.BlockPos findSupportingBlockNoOrientation(net.minecraft.world.entity.Entity entity, double downExtend)
    • findSupportingBlock

      public static net.minecraft.core.BlockPos findSupportingBlock(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, org.joml.primitives.AABBd box, org.joml.Vector3dc feetPos, org.joml.Matrix4dc box2world)
    • expandTowards

      public static org.joml.primitives.AABBd expandTowards(org.joml.primitives.AABBd box, org.joml.Vector3dc vec)
    • expandTowards

      public static org.joml.primitives.AABBd expandTowards(org.joml.primitives.AABBd box, double x, double y, double z)