Class VoxelShapeBlockHitResult

java.lang.Object
net.minecraft.world.phys.HitResult
net.minecraft.world.phys.BlockHitResult
codechicken.lib.raytracer.SubHitBlockHitResult
codechicken.lib.raytracer.VoxelShapeBlockHitResult
All Implemented Interfaces:
Comparable<SubHitBlockHitResult>

public class VoxelShapeBlockHitResult extends SubHitBlockHitResult
Represents a RayTraceResult generated by a IndexedVoxelShape or MultiIndexedVoxelShape.

Provides easy access to the distance, as well as the IndexedVoxelShape which the ray hit.

Created by covers1624 on 8/9/2016.

  • Field Details

  • Constructor Details

    • VoxelShapeBlockHitResult

      public VoxelShapeBlockHitResult(net.minecraft.world.phys.BlockHitResult other, IndexedVoxelShape shape, double dist)
    • VoxelShapeBlockHitResult

      public VoxelShapeBlockHitResult(Vector3 hit, net.minecraft.core.Direction side, net.minecraft.core.BlockPos pos, boolean isInside, IndexedVoxelShape shape, double dist)
    • VoxelShapeBlockHitResult

      public VoxelShapeBlockHitResult(Vector3 hit, net.minecraft.core.Direction side, boolean isInside, IndexedVoxelShape shape, double dist)
    • VoxelShapeBlockHitResult

      protected VoxelShapeBlockHitResult(boolean isMissIn, net.minecraft.world.phys.Vec3 hit, net.minecraft.core.Direction side, net.minecraft.core.BlockPos pos, boolean isInside, IndexedVoxelShape shape, double dist)
  • Method Details