Package codechicken.lib.raytracer
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>
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.phys.HitResult
net.minecraft.world.phys.HitResult.Type -
Field Summary
FieldsFields inherited from class codechicken.lib.raytracer.SubHitBlockHitResult
dist, hitInfo, subHitFields inherited from class net.minecraft.world.phys.HitResult
location -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVoxelShapeBlockHitResult(boolean isMissIn, net.minecraft.world.phys.Vec3 hit, net.minecraft.core.Direction side, net.minecraft.core.BlockPos pos, boolean isInside, IndexedVoxelShape shape, double dist) VoxelShapeBlockHitResult(Vector3 hit, net.minecraft.core.Direction side, boolean isInside, IndexedVoxelShape shape, double dist) VoxelShapeBlockHitResult(Vector3 hit, net.minecraft.core.Direction side, net.minecraft.core.BlockPos pos, boolean isInside, IndexedVoxelShape shape, double dist) VoxelShapeBlockHitResult(net.minecraft.world.phys.BlockHitResult other, IndexedVoxelShape shape, double dist) -
Method Summary
Methods inherited from class codechicken.lib.raytracer.SubHitBlockHitResult
compareToMethods 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
-
shape
-
-
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
-
withDirection
- Overrides:
withDirectionin classSubHitBlockHitResult
-
getAsDistanceResult
-
toString
- Overrides:
toStringin classSubHitBlockHitResult
-