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

    Fields
    Modifier and Type
    Field
    Description
    final double
    The square distance from the start of the raytrace.
    final Object
     
    final int
     

    Fields inherited from class net.minecraft.world.phys.HitResult

    location
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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)
     
     
    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 Type
    Method
    Description
    int
     
     
    withDirection(net.minecraft.core.Direction newFace)
     

    Methods inherited from class net.minecraft.world.phys.BlockHitResult

    getBlockPos, getDirection, getType, isInside, miss, withPosition

    Methods inherited from class net.minecraft.world.phys.HitResult

    distanceTo, getLocation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • dist

      public final double dist
      The square distance from the start of the raytrace.
    • hitInfo

      public final Object hitInfo
    • subHit

      public final int subHit
  • Constructor Details

    • SubHitBlockHitResult

      public SubHitBlockHitResult(Vector3 hitVec, net.minecraft.core.Direction faceIn, net.minecraft.core.BlockPos posIn, boolean isInside, Object data, double dist)
    • 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