Package codechicken.multipart.util
Class PartRayTraceResult
java.lang.Object
net.minecraft.world.phys.HitResult
net.minecraft.world.phys.BlockHitResult
codechicken.multipart.util.PartRayTraceResult
- All Implemented Interfaces:
Comparable<codechicken.lib.raytracer.SubHitBlockHitResult>
public class PartRayTraceResult
extends net.minecraft.world.phys.BlockHitResult
implements Comparable<codechicken.lib.raytracer.SubHitBlockHitResult>
A
BlockHitResult which has hit a specific part.
Created by covers1624 on 2/9/20.
-
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 ray trace start location to the hit point.final net.minecraft.world.phys.BlockHitResultThe rawBlockHitResultthat the part's shape returned.final net.minecraft.world.phys.shapes.VoxelShapeThe shape of the part that was hit.final MultiPartThe part that was hit.Fields inherited from class net.minecraft.world.phys.HitResult
location -
Constructor Summary
ConstructorsConstructorDescriptionPartRayTraceResult(net.minecraft.world.phys.shapes.VoxelShape hitShape, MultiPart part, net.minecraft.world.phys.BlockHitResult hit, net.minecraft.world.phys.Vec3 start) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(codechicken.lib.raytracer.SubHitBlockHitResult o) Methods inherited from class net.minecraft.world.phys.BlockHitResult
getBlockPos, getDirection, getType, hitBorder, isInside, isWorldBorderHit, miss, withDirection, withPositionMethods inherited from class net.minecraft.world.phys.HitResult
distanceTo, getLocation
-
Field Details
-
hitShape
public final net.minecraft.world.phys.shapes.VoxelShape hitShapeThe shape of the part that was hit. -
part
The part that was hit. -
distance
public final double distanceThe square distance from the ray trace start location to the hit point. -
hit
public final net.minecraft.world.phys.BlockHitResult hitThe rawBlockHitResultthat the part's shape returned.
-
-
Constructor Details
-
PartRayTraceResult
public PartRayTraceResult(net.minecraft.world.phys.shapes.VoxelShape hitShape, MultiPart part, net.minecraft.world.phys.BlockHitResult hit, net.minecraft.world.phys.Vec3 start)
-
-
Method Details
-
compareTo
public int compareTo(codechicken.lib.raytracer.SubHitBlockHitResult o) - Specified by:
compareToin interfaceComparable<codechicken.lib.raytracer.SubHitBlockHitResult>
-