Class RaycastHelper

java.lang.Object
com.simibubi.create.foundation.utility.RaycastHelper

public class RaycastHelper extends Object
  • Constructor Details

    • RaycastHelper

      public RaycastHelper()
  • Method Details

    • rayTraceRange

      public static net.minecraft.world.phys.BlockHitResult rayTraceRange(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, double range)
    • rayTraceUntil

      public static RaycastHelper.PredicateTraceResult rayTraceUntil(net.minecraft.world.entity.player.Player playerIn, double range, Predicate<net.minecraft.core.BlockPos> predicate)
    • getTraceTarget

      public static net.minecraft.world.phys.Vec3 getTraceTarget(net.minecraft.world.entity.player.Player playerIn, double range, net.minecraft.world.phys.Vec3 origin)
    • getTraceOrigin

      public static net.minecraft.world.phys.Vec3 getTraceOrigin(net.minecraft.world.entity.player.Player playerIn)
    • rayTraceUntil

      public static RaycastHelper.PredicateTraceResult rayTraceUntil(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, Predicate<net.minecraft.core.BlockPos> predicate)