Package codechicken.lib.raytracer
Class SubHitBlockHitResult
java.lang.Object
net.minecraft.world.phys.HitResult
net.minecraft.world.phys.BlockHitResult
codechicken.lib.raytracer.SubHitBlockHitResult
- All Implemented Interfaces:
Comparable<SubHitBlockHitResult>
- Direct Known Subclasses:
VoxelShapeBlockHitResult
public class SubHitBlockHitResult
extends net.minecraft.world.phys.BlockHitResult
implements Comparable<SubHitBlockHitResult>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.phys.HitResult
net.minecraft.world.phys.HitResult.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleThe square distance from the start of the raytrace.final Objectfinal intFields inherited from class net.minecraft.world.phys.HitResult
location -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSubHitBlockHitResult(boolean isMissIn, net.minecraft.world.phys.Vec3 hitVec, net.minecraft.core.Direction faceIn, net.minecraft.core.BlockPos posIn, boolean isInside, Object data, double dist) SubHitBlockHitResult(Vector3 hitVec, net.minecraft.core.Direction faceIn, net.minecraft.core.BlockPos posIn, boolean isInside, Object data, double dist) SubHitBlockHitResult(net.minecraft.world.phys.Vec3 hitVec, net.minecraft.core.Direction faceIn, net.minecraft.core.BlockPos posIn, boolean isInside, Object data, double dist) -
Method Summary
Modifier and TypeMethodDescriptioninttoString()withDirection(net.minecraft.core.Direction newFace) Methods inherited from class net.minecraft.world.phys.BlockHitResult
getBlockPos, getDirection, getType, isInside, miss, withPositionMethods inherited from class net.minecraft.world.phys.HitResult
distanceTo, getLocation
-
Field Details
-
dist
public final double distThe square distance from the start of the raytrace. -
hitInfo
-
subHit
public final int subHit
-
-
Constructor Details
-
SubHitBlockHitResult
-
SubHitBlockHitResult
public SubHitBlockHitResult(net.minecraft.world.phys.Vec3 hitVec, net.minecraft.core.Direction faceIn, net.minecraft.core.BlockPos posIn, boolean isInside, Object data, double dist) -
SubHitBlockHitResult
protected SubHitBlockHitResult(boolean isMissIn, net.minecraft.world.phys.Vec3 hitVec, net.minecraft.core.Direction faceIn, net.minecraft.core.BlockPos posIn, boolean isInside, Object data, double dist)
-
-
Method Details
-
withDirection
- Overrides:
withDirectionin classnet.minecraft.world.phys.BlockHitResult
-
compareTo
- Specified by:
compareToin interfaceComparable<SubHitBlockHitResult>
-
toString
-