Class RayTracer
java.lang.Object
com.binaris.wizardry.api.content.util.RayTracer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<net.minecraft.world.entity.Entity>ignoreEntityFilter(@Nullable net.minecraft.world.entity.Entity entity) static @NotNull net.minecraft.world.phys.HitResultrayTrace(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.HitResultstandardBlockRayTrace(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, double range, boolean hitLiquids, boolean ignoreUncollidables, boolean returnLastUncollidable)
-
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)
-