Class RayTracer

java.lang.Object
com.binaris.wizardry.api.content.util.RayTracer

public final class RayTracer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Predicate<net.minecraft.world.entity.Entity>
    ignoreEntityFilter(@Nullable net.minecraft.world.entity.Entity entity)
     
    static @NotNull net.minecraft.world.phys.HitResult
    rayTrace(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity caster, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 endpoint, float aimAssist, boolean hitLiquids, Class<? extends net.minecraft.world.entity.Entity> entityType, Predicate<? super net.minecraft.world.entity.Entity> filter)
     
    static @NotNull net.minecraft.world.phys.HitResult
    standardBlockRayTrace(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, double range, boolean hitLiquids, boolean ignoreUncollidables, boolean returnLastUncollidable)
     

    Methods inherited from class java.lang.Object

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

    • RayTracer

      public RayTracer()
  • Method Details

    • rayTrace

      @NotNull public static @NotNull net.minecraft.world.phys.HitResult rayTrace(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity caster, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 endpoint, float aimAssist, boolean hitLiquids, Class<? extends net.minecraft.world.entity.Entity> entityType, Predicate<? super net.minecraft.world.entity.Entity> filter)
    • standardBlockRayTrace

      @NotNull public static @NotNull net.minecraft.world.phys.HitResult standardBlockRayTrace(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, double range, boolean hitLiquids, boolean ignoreUncollidables, boolean returnLastUncollidable)
    • ignoreEntityFilter

      public static Predicate<net.minecraft.world.entity.Entity> ignoreEntityFilter(@Nullable @Nullable net.minecraft.world.entity.Entity entity)