Class RaycastHelper
java.lang.Object
com.simibubi.create.foundation.utility.RaycastHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.phys.Vec3getTraceOrigin(net.minecraft.world.entity.player.Player playerIn) static net.minecraft.world.phys.Vec3getTraceTarget(net.minecraft.world.entity.player.Player playerIn, double range, net.minecraft.world.phys.Vec3 origin) static net.minecraft.world.phys.BlockHitResultrayTraceRange(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, double range) rayTraceUntil(net.minecraft.world.entity.player.Player playerIn, double range, Predicate<net.minecraft.core.BlockPos> predicate) rayTraceUntil(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, Predicate<net.minecraft.core.BlockPos> predicate)
-
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)
-