Package codechicken.lib.raytracer
Class IndexedVoxelShape
java.lang.Object
net.minecraft.world.phys.shapes.VoxelShape
codechicken.lib.raytracer.IndexedVoxelShape
public class IndexedVoxelShape
extends net.minecraft.world.phys.shapes.VoxelShape
A VoxelShape implementation, produces a
VoxelShapeBlockHitResult when ray traced.
data will be passed through to SubHitBlockHitResult.hitInfo and
to SubHitBlockHitResult.subHit if it's an integer.
Created by covers1624 on 5/12/20.
-
Field Summary
Fields inherited from class net.minecraft.world.phys.shapes.VoxelShape
shape -
Constructor Summary
ConstructorsConstructorDescriptionIndexedVoxelShape(net.minecraft.world.phys.shapes.VoxelShape parent, Object data) -
Method Summary
Modifier and TypeMethodDescription@Nullable VoxelShapeBlockHitResultclip(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, net.minecraft.core.BlockPos pos) it.unimi.dsi.fastutil.doubles.DoubleListgetCoords(net.minecraft.core.Direction.Axis axis) getData()Methods inherited from class net.minecraft.world.phys.shapes.VoxelShape
bounds, closestPointTo, collide, collideX, findIndex, forAllBoxes, forAllEdges, get, getFaceShape, isEmpty, max, max, min, min, move, optimize, singleEncompassing, toAabbs, toString
-
Constructor Details
-
IndexedVoxelShape
-
-
Method Details
-
getCoords
public it.unimi.dsi.fastutil.doubles.DoubleList getCoords(net.minecraft.core.Direction.Axis axis) - Specified by:
getCoordsin classnet.minecraft.world.phys.shapes.VoxelShape
-
clip
@Nullable public @Nullable VoxelShapeBlockHitResult clip(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, net.minecraft.core.BlockPos pos) - Overrides:
clipin classnet.minecraft.world.phys.shapes.VoxelShape
-
getData
-