Class VoxelShape

java.lang.Object
net.minecraft.util.shape.VoxelShape
Direct Known Subclasses:
ArrayVoxelShape, SimpleVoxelShape, SlicedVoxelShape

public abstract class VoxelShape extends Object
Mappings:
Namespace Name
official emm
intermediary net/minecraft/class_265
named net/minecraft/util/shape/VoxelShape
  • Field Details

    • voxels

      protected final VoxelSet voxels
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a:Lemc;
      intermediary field_1401 Lnet/minecraft/class_265;field_1401:Lnet/minecraft/class_251;
      named voxels Lnet/minecraft/util/shape/VoxelShape;voxels:Lnet/minecraft/util/shape/VoxelSet;
    • shapeCache

      @Nullable private @Nullable VoxelShape[] shapeCache
      Mappings:
      Namespace Name Mixin selector
      official b Lemm;b:[Lemm;
      intermediary field_19318 Lnet/minecraft/class_265;field_19318:[Lnet/minecraft/class_265;
      named shapeCache Lnet/minecraft/util/shape/VoxelShape;shapeCache:[Lnet/minecraft/util/shape/VoxelShape;
  • Constructor Details

    • VoxelShape

      VoxelShape(VoxelSet voxels)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lemm;<init>(Lemc;)V
      intermediary <init> Lnet/minecraft/class_265;<init>(Lnet/minecraft/class_251;)V
      named <init> Lnet/minecraft/util/shape/VoxelShape;<init>(Lnet/minecraft/util/shape/VoxelSet;)V
  • Method Details

    • getMin

      public double getMin(Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official b Lemm;b(Lic$a;)D
      intermediary method_1091 Lnet/minecraft/class_265;method_1091(Lnet/minecraft/class_2350$class_2351;)D
      named getMin Lnet/minecraft/util/shape/VoxelShape;getMin(Lnet/minecraft/util/math/Direction$Axis;)D
    • getMax

      public double getMax(Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official c Lemm;c(Lic$a;)D
      intermediary method_1105 Lnet/minecraft/class_265;method_1105(Lnet/minecraft/class_2350$class_2351;)D
      named getMax Lnet/minecraft/util/shape/VoxelShape;getMax(Lnet/minecraft/util/math/Direction$Axis;)D
    • getBoundingBox

      public Box getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a()Lelo;
      intermediary method_1107 Lnet/minecraft/class_265;method_1107()Lnet/minecraft/class_238;
      named getBoundingBox Lnet/minecraft/util/shape/VoxelShape;getBoundingBox()Lnet/minecraft/util/math/Box;
    • asCuboid

      public VoxelShape asCuboid()
      Mappings:
      Namespace Name Mixin selector
      official b Lemm;b()Lemm;
      intermediary method_52620 Lnet/minecraft/class_265;method_52620()Lnet/minecraft/class_265;
      named asCuboid Lnet/minecraft/util/shape/VoxelShape;asCuboid()Lnet/minecraft/util/shape/VoxelShape;
    • getPointPosition

      protected double getPointPosition(Direction.Axis axis, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lic$a;I)D
      intermediary method_1099 Lnet/minecraft/class_265;method_1099(Lnet/minecraft/class_2350$class_2351;I)D
      named getPointPosition Lnet/minecraft/util/shape/VoxelShape;getPointPosition(Lnet/minecraft/util/math/Direction$Axis;I)D
    • getPointPositions

      protected abstract DoubleList getPointPositions(Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lic$a;)Lit/unimi/dsi/fastutil/doubles/DoubleList;
      intermediary method_1109 Lnet/minecraft/class_265;method_1109(Lnet/minecraft/class_2350$class_2351;)Lit/unimi/dsi/fastutil/doubles/DoubleList;
      named getPointPositions Lnet/minecraft/util/shape/VoxelShape;getPointPositions(Lnet/minecraft/util/math/Direction$Axis;)Lit/unimi/dsi/fastutil/doubles/DoubleList;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official c Lemm;c()Z
      intermediary method_1110 Lnet/minecraft/class_265;method_1110()Z
      named isEmpty Lnet/minecraft/util/shape/VoxelShape;isEmpty()Z
    • offset

      public VoxelShape offset(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(DDD)Lemm;
      intermediary method_1096 Lnet/minecraft/class_265;method_1096(DDD)Lnet/minecraft/class_265;
      named offset Lnet/minecraft/util/shape/VoxelShape;offset(DDD)Lnet/minecraft/util/shape/VoxelShape;
    • simplify

      public VoxelShape simplify()
      Mappings:
      Namespace Name Mixin selector
      official d Lemm;d()Lemm;
      intermediary method_1097 Lnet/minecraft/class_265;method_1097()Lnet/minecraft/class_265;
      named simplify Lnet/minecraft/util/shape/VoxelShape;simplify()Lnet/minecraft/util/shape/VoxelShape;
    • forEachEdge

      public void forEachEdge(VoxelShapes.BoxConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lemj$a;)V
      intermediary method_1104 Lnet/minecraft/class_265;method_1104(Lnet/minecraft/class_259$class_260;)V
      named forEachEdge Lnet/minecraft/util/shape/VoxelShape;forEachEdge(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)V
    • forEachBox

      public void forEachBox(VoxelShapes.BoxConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official b Lemm;b(Lemj$a;)V
      intermediary method_1089 Lnet/minecraft/class_265;method_1089(Lnet/minecraft/class_259$class_260;)V
      named forEachBox Lnet/minecraft/util/shape/VoxelShape;forEachBox(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)V
    • getBoundingBoxes

      public List<Box> getBoundingBoxes()
      Mappings:
      Namespace Name Mixin selector
      official e Lemm;e()Ljava/util/List;
      intermediary method_1090 Lnet/minecraft/class_265;method_1090()Ljava/util/List;
      named getBoundingBoxes Lnet/minecraft/util/shape/VoxelShape;getBoundingBoxes()Ljava/util/List;
    • getStartingCoord

      public double getStartingCoord(Direction.Axis axis, double from, double to)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lic$a;DD)D
      intermediary method_35593 Lnet/minecraft/class_265;method_35593(Lnet/minecraft/class_2350$class_2351;DD)D
      named getStartingCoord Lnet/minecraft/util/shape/VoxelShape;getStartingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)D
    • getEndingCoord

      public double getEndingCoord(Direction.Axis axis, double from, double to)
      Mappings:
      Namespace Name Mixin selector
      official b Lemm;b(Lic$a;DD)D
      intermediary method_1102 Lnet/minecraft/class_265;method_1102(Lnet/minecraft/class_2350$class_2351;DD)D
      named getEndingCoord Lnet/minecraft/util/shape/VoxelShape;getEndingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)D
    • getCoordIndex

      protected int getCoordIndex(Direction.Axis axis, double coord)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lic$a;D)I
      intermediary method_1100 Lnet/minecraft/class_265;method_1100(Lnet/minecraft/class_2350$class_2351;D)I
      named getCoordIndex Lnet/minecraft/util/shape/VoxelShape;getCoordIndex(Lnet/minecraft/util/math/Direction$Axis;D)I
    • raycast

      @Nullable public @Nullable BlockHitResult raycast(Vec3d start, Vec3d end, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lelt;Lelt;Lhx;)Lelp;
      intermediary method_1092 Lnet/minecraft/class_265;method_1092(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3965;
      named raycast Lnet/minecraft/util/shape/VoxelShape;raycast(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/hit/BlockHitResult;
    • getClosestPointTo

      public Optional<Vec3d> getClosestPointTo(Vec3d target)
      Returns the closest point in the shape to target.
      Returns:
      the closest point in the shape to target
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lelt;)Ljava/util/Optional;
      intermediary method_33661 Lnet/minecraft/class_265;method_33661(Lnet/minecraft/class_243;)Ljava/util/Optional;
      named getClosestPointTo Lnet/minecraft/util/shape/VoxelShape;getClosestPointTo(Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;
    • getFace

      public VoxelShape getFace(Direction facing)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lic;)Lemm;
      intermediary method_20538 Lnet/minecraft/class_265;method_20538(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;
      named getFace Lnet/minecraft/util/shape/VoxelShape;getFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
    • getUncachedFace

      private VoxelShape getUncachedFace(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lemm;b(Lic;)Lemm;
      intermediary method_1098 Lnet/minecraft/class_265;method_1098(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;
      named getUncachedFace Lnet/minecraft/util/shape/VoxelShape;getUncachedFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
    • calculateMaxDistance

      public double calculateMaxDistance(Direction.Axis axis, Box box, double maxDist)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lic$a;Lelo;D)D
      intermediary method_1108 Lnet/minecraft/class_265;method_1108(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;D)D
      named calculateMaxDistance Lnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;D)D
    • calculateMaxDistance

      protected double calculateMaxDistance(AxisCycleDirection axisCycle, Box box, double maxDist)
      Mappings:
      Namespace Name Mixin selector
      official a Lemm;a(Lhv;Lelo;D)D
      intermediary method_1103 Lnet/minecraft/class_265;method_1103(Lnet/minecraft/class_2335;Lnet/minecraft/class_238;D)D
      named calculateMaxDistance Lnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/AxisCycleDirection;Lnet/minecraft/util/math/Box;D)D
    • toString

      public String toString()
      Overrides:
      toString in class Object