Class DistanceRayTraceResult
java.lang.Object
net.minecraft.world.phys.HitResult
com.hrznstudio.titanium.api.raytrace.DistanceRayTraceResult
public class DistanceRayTraceResult
extends net.minecraft.world.phys.HitResult
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.phys.HitResult
net.minecraft.world.phys.HitResult.Type -
Field Summary
Fields inherited from class net.minecraft.world.phys.HitResult
location -
Constructor Summary
ConstructorsConstructorDescriptionDistanceRayTraceResult(net.minecraft.world.phys.Vec3 hitVecIn, net.minecraft.core.Direction sideHitIn, net.minecraft.core.BlockPos blockPosIn, net.minecraft.world.phys.shapes.VoxelShape box, double distance) -
Method Summary
Modifier and TypeMethodDescriptiondoublenet.minecraft.world.phys.shapes.VoxelShapenet.minecraft.world.phys.HitResult.TypegetType()Methods inherited from class net.minecraft.world.phys.HitResult
distanceTo, getLocation
-
Constructor Details
-
DistanceRayTraceResult
public DistanceRayTraceResult(net.minecraft.world.phys.Vec3 hitVecIn, net.minecraft.core.Direction sideHitIn, net.minecraft.core.BlockPos blockPosIn, net.minecraft.world.phys.shapes.VoxelShape box, double distance)
-
-
Method Details
-
getHitBox
public net.minecraft.world.phys.shapes.VoxelShape getHitBox() -
getDistance
public double getDistance() -
getType
public net.minecraft.world.phys.HitResult.Type getType()- Specified by:
getTypein classnet.minecraft.world.phys.HitResult
-