Package net.minecraft.util.shape
Class VoxelShape
java.lang.Object
net.minecraft.util.shape.VoxelShape
- Direct Known Subclasses:
ArrayVoxelShape,SimpleVoxelShape,SlicedVoxelShape
- Mappings:
Namespace Name official dntintermediary net/minecraft/class_265named net/minecraft/util/shape/VoxelShape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateMaxDistance(AxisCycleDirection axisCycle, Box box, double maxDist)doublecalculateMaxDistance(Direction.Axis axis, Box box, double maxDist)voidforEachBox(VoxelShapes.BoxConsumer boxConsumer)voidforEachEdge(VoxelShapes.BoxConsumer boxConsumer)protected intgetCoordIndex(Direction.Axis axis, double coord)doublegetEndingCoord(Direction.Axis axis, double from, double to)doublegetMax(Direction.Axis axis)doublegetMin(Direction.Axis axis)protected doublegetPointPosition(Direction.Axis axis, int index)protected abstract DoubleListgetPointPositions(Direction.Axis axis)private VoxelShapegetUncachedFace(Direction direction)booleanisEmpty()method_33661(Vec3d vec3d)doublemethod_35593(Direction.Axis axis, double double2, double double3)offset(double x, double y, double z)simplify()toString()
-
Field Details
-
voxels
- Mappings:
Namespace Name Mixin selector official aLdnt;a:Ldnj;intermediary field_1401Lnet/minecraft/class_265;field_1401:Lnet/minecraft/class_251;named voxelsLnet/minecraft/util/shape/VoxelShape;voxels:Lnet/minecraft/util/shape/VoxelSet;
-
shapeCache
- Mappings:
Namespace Name Mixin selector official bLdnt;b:[Ldnt;intermediary field_19318Lnet/minecraft/class_265;field_19318:[Lnet/minecraft/class_265;named shapeCacheLnet/minecraft/util/shape/VoxelShape;shapeCache:[Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
VoxelShape
VoxelShape(VoxelSet voxels)- Mappings:
Namespace Name Mixin selector official <init>Ldnt;<init>(Ldnj;)Vintermediary <init>Lnet/minecraft/class_265;<init>(Lnet/minecraft/class_251;)Vnamed <init>Lnet/minecraft/util/shape/VoxelShape;<init>(Lnet/minecraft/util/shape/VoxelSet;)V
-
-
Method Details
-
getMin
- Mappings:
Namespace Name Mixin selector official bLdnt;b(Lgl$a;)Dintermediary method_1091Lnet/minecraft/class_265;method_1091(Lnet/minecraft/class_2350$class_2351;)Dnamed getMinLnet/minecraft/util/shape/VoxelShape;getMin(Lnet/minecraft/util/math/Direction$Axis;)D
-
getMax
- Mappings:
Namespace Name Mixin selector official cLdnt;c(Lgl$a;)Dintermediary method_1105Lnet/minecraft/class_265;method_1105(Lnet/minecraft/class_2350$class_2351;)Dnamed getMaxLnet/minecraft/util/shape/VoxelShape;getMax(Lnet/minecraft/util/math/Direction$Axis;)D
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official aLdnt;a()Ldmv;intermediary method_1107Lnet/minecraft/class_265;method_1107()Lnet/minecraft/class_238;named getBoundingBoxLnet/minecraft/util/shape/VoxelShape;getBoundingBox()Lnet/minecraft/util/math/Box;
-
getPointPosition
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lgl$a;I)Dintermediary method_1099Lnet/minecraft/class_265;method_1099(Lnet/minecraft/class_2350$class_2351;I)Dnamed getPointPositionLnet/minecraft/util/shape/VoxelShape;getPointPosition(Lnet/minecraft/util/math/Direction$Axis;I)D
-
getPointPositions
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lgl$a;)Lit/unimi/dsi/fastutil/doubles/DoubleList;intermediary method_1109Lnet/minecraft/class_265;method_1109(Lnet/minecraft/class_2350$class_2351;)Lit/unimi/dsi/fastutil/doubles/DoubleList;named getPointPositionsLnet/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 bLdnt;b()Zintermediary method_1110Lnet/minecraft/class_265;method_1110()Znamed isEmptyLnet/minecraft/util/shape/VoxelShape;isEmpty()Z
-
offset
- Mappings:
Namespace Name Mixin selector official aLdnt;a(DDD)Ldnt;intermediary method_1096Lnet/minecraft/class_265;method_1096(DDD)Lnet/minecraft/class_265;named offsetLnet/minecraft/util/shape/VoxelShape;offset(DDD)Lnet/minecraft/util/shape/VoxelShape;
-
simplify
- Mappings:
Namespace Name Mixin selector official cLdnt;c()Ldnt;intermediary method_1097Lnet/minecraft/class_265;method_1097()Lnet/minecraft/class_265;named simplifyLnet/minecraft/util/shape/VoxelShape;simplify()Lnet/minecraft/util/shape/VoxelShape;
-
forEachEdge
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Ldnq$a;)Vintermediary method_1104Lnet/minecraft/class_265;method_1104(Lnet/minecraft/class_259$class_260;)Vnamed forEachEdgeLnet/minecraft/util/shape/VoxelShape;forEachEdge(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)V
-
forEachBox
- Mappings:
Namespace Name Mixin selector official bLdnt;b(Ldnq$a;)Vintermediary method_1089Lnet/minecraft/class_265;method_1089(Lnet/minecraft/class_259$class_260;)Vnamed forEachBoxLnet/minecraft/util/shape/VoxelShape;forEachBox(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)V
-
getBoundingBoxes
- Mappings:
Namespace Name Mixin selector official dLdnt;d()Ljava/util/List;intermediary method_1090Lnet/minecraft/class_265;method_1090()Ljava/util/List;named getBoundingBoxesLnet/minecraft/util/shape/VoxelShape;getBoundingBoxes()Ljava/util/List;
-
method_35593
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lgl$a;DD)Dintermediary method_35593Lnet/minecraft/class_265;method_35593(Lnet/minecraft/class_2350$class_2351;DD)Dnamed method_35593Lnet/minecraft/util/shape/VoxelShape;method_35593(Lnet/minecraft/util/math/Direction$Axis;DD)D
-
getEndingCoord
- Mappings:
Namespace Name Mixin selector official bLdnt;b(Lgl$a;DD)Dintermediary method_1102Lnet/minecraft/class_265;method_1102(Lnet/minecraft/class_2350$class_2351;DD)Dnamed getEndingCoordLnet/minecraft/util/shape/VoxelShape;getEndingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)D
-
getCoordIndex
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lgl$a;D)Iintermediary method_1100Lnet/minecraft/class_265;method_1100(Lnet/minecraft/class_2350$class_2351;D)Inamed getCoordIndexLnet/minecraft/util/shape/VoxelShape;getCoordIndex(Lnet/minecraft/util/math/Direction$Axis;D)I
-
raycast
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Ldna;Ldna;Lgg;)Ldmw;intermediary method_1092Lnet/minecraft/class_265;method_1092(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3965;named raycastLnet/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;
-
method_33661
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Ldna;)Ljava/util/Optional;intermediary method_33661Lnet/minecraft/class_265;method_33661(Lnet/minecraft/class_243;)Ljava/util/Optional;named method_33661Lnet/minecraft/util/shape/VoxelShape;method_33661(Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;
-
getFace
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lgl;)Ldnt;intermediary method_20538Lnet/minecraft/class_265;method_20538(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;named getFaceLnet/minecraft/util/shape/VoxelShape;getFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
-
getUncachedFace
- Mappings:
Namespace Name Mixin selector official bLdnt;b(Lgl;)Ldnt;intermediary method_1098Lnet/minecraft/class_265;method_1098(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;named getUncachedFaceLnet/minecraft/util/shape/VoxelShape;getUncachedFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
-
calculateMaxDistance
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lgl$a;Ldmv;D)Dintermediary method_1108Lnet/minecraft/class_265;method_1108(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;D)Dnamed calculateMaxDistanceLnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;D)D
-
calculateMaxDistance
- Mappings:
Namespace Name Mixin selector official aLdnt;a(Lge;Ldmv;D)Dintermediary method_1103Lnet/minecraft/class_265;method_1103(Lnet/minecraft/class_2335;Lnet/minecraft/class_238;D)Dnamed calculateMaxDistanceLnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/AxisCycleDirection;Lnet/minecraft/util/math/Box;D)D
-
toString
-