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

    Constructors
    Constructor
    Description
    IndexedVoxelShape(net.minecraft.world.phys.shapes.VoxelShape parent, Object data)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    clip(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, net.minecraft.core.BlockPos pos)
     
    it.unimi.dsi.fastutil.doubles.DoubleList
    getCoords(net.minecraft.core.Direction.Axis axis)
     
     

    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

    Methods inherited from class java.lang.Object

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

    • IndexedVoxelShape

      public IndexedVoxelShape(net.minecraft.world.phys.shapes.VoxelShape parent, Object data)
  • Method Details

    • getCoords

      public it.unimi.dsi.fastutil.doubles.DoubleList getCoords(net.minecraft.core.Direction.Axis axis)
      Specified by:
      getCoords in class net.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:
      clip in class net.minecraft.world.phys.shapes.VoxelShape
    • getData

      public Object getData()