Package net.minecraft.util.shape
Class VoxelShape
java.lang.Object
net.minecraft.util.shape.VoxelShape
- Direct Known Subclasses:
ArrayVoxelShape
,SimpleVoxelShape
,SlicedVoxelShape
- Mappings:
Namespace Name named net/minecraft/util/shape/VoxelShape
intermediary net/minecraft/class_265
official fcr
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasCuboid()
protected double
calculateMaxDistance
(AxisCycleDirection axisCycle, Box box, double maxDist) double
calculateMaxDistance
(Direction.Axis axis, Box box, double maxDist) void
forEachBox
(VoxelShapes.BoxConsumer consumer) void
forEachEdge
(VoxelShapes.BoxConsumer consumer) getClosestPointTo
(Vec3d target) Returns the closest point in the shape totarget
.protected int
getCoordIndex
(Direction.Axis axis, double coord) double
getEndingCoord
(Direction.Axis axis, double from, double to) double
getMax
(Direction.Axis axis) double
getMin
(Direction.Axis axis) protected double
getPointPosition
(Direction.Axis axis, int index) abstract DoubleList
double
getStartingCoord
(Direction.Axis axis, double from, double to) private VoxelShape
getUncachedFace
(Direction facing) protected boolean
isCube()
boolean
isEmpty()
private boolean
isSquare
(Direction.Axis axis) offset
(double x, double y, double z) simplify()
toString()
-
Field Details
-
voxels
- Mappings:
Namespace Name Mixin selector named voxels
Lnet/minecraft/util/shape/VoxelShape;voxels:Lnet/minecraft/util/shape/VoxelSet;
intermediary field_1401
Lnet/minecraft/class_265;field_1401:Lnet/minecraft/class_251;
official a
Lfcr;a:Lfcg;
-
shapeCache
- Mappings:
Namespace Name Mixin selector named shapeCache
Lnet/minecraft/util/shape/VoxelShape;shapeCache:[Lnet/minecraft/util/shape/VoxelShape;
intermediary field_19318
Lnet/minecraft/class_265;field_19318:[Lnet/minecraft/class_265;
official b
Lfcr;b:[Lfcr;
-
-
Constructor Details
-
VoxelShape
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/shape/VoxelShape;<init>(Lnet/minecraft/util/shape/VoxelSet;)V
intermediary <init>
Lnet/minecraft/class_265;<init>(Lnet/minecraft/class_251;)V
official <init>
Lfcr;<init>(Lfcg;)V
-
-
Method Details
-
getMin
- Mappings:
Namespace Name Mixin selector named getMin
Lnet/minecraft/util/shape/VoxelShape;getMin(Lnet/minecraft/util/math/Direction$Axis;)D
intermediary method_1091
Lnet/minecraft/class_265;method_1091(Lnet/minecraft/class_2350$class_2351;)D
official b
Lfcr;b(Ljm$a;)D
-
getMax
- Mappings:
Namespace Name Mixin selector named getMax
Lnet/minecraft/util/shape/VoxelShape;getMax(Lnet/minecraft/util/math/Direction$Axis;)D
intermediary method_1105
Lnet/minecraft/class_265;method_1105(Lnet/minecraft/class_2350$class_2351;)D
official c
Lfcr;c(Ljm$a;)D
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/util/shape/VoxelShape;getBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_1107
Lnet/minecraft/class_265;method_1107()Lnet/minecraft/class_238;
official a
Lfcr;a()Lfbs;
-
asCuboid
- Mappings:
Namespace Name Mixin selector named asCuboid
Lnet/minecraft/util/shape/VoxelShape;asCuboid()Lnet/minecraft/util/shape/VoxelShape;
intermediary method_52620
Lnet/minecraft/class_265;method_52620()Lnet/minecraft/class_265;
official b
Lfcr;b()Lfcr;
-
getPointPosition
- Mappings:
Namespace Name Mixin selector named getPointPosition
Lnet/minecraft/util/shape/VoxelShape;getPointPosition(Lnet/minecraft/util/math/Direction$Axis;I)D
intermediary method_1099
Lnet/minecraft/class_265;method_1099(Lnet/minecraft/class_2350$class_2351;I)D
official a
Lfcr;a(Ljm$a;I)D
-
getPointPositions
- Mappings:
Namespace Name Mixin selector named getPointPositions
Lnet/minecraft/util/shape/VoxelShape;getPointPositions(Lnet/minecraft/util/math/Direction$Axis;)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;
official a
Lfcr;a(Ljm$a;)Lit/unimi/dsi/fastutil/doubles/DoubleList;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/util/shape/VoxelShape;isEmpty()Z
intermediary method_1110
Lnet/minecraft/class_265;method_1110()Z
official c
Lfcr;c()Z
-
offset
- Mappings:
Namespace Name Mixin selector named offset
Lnet/minecraft/util/shape/VoxelShape;offset(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_64034
Lnet/minecraft/class_265;method_64034(Lnet/minecraft/class_243;)Lnet/minecraft/class_265;
official a
Lfcr;a(Lfbx;)Lfcr;
-
offset
- Mappings:
Namespace Name Mixin selector named offset
Lnet/minecraft/util/shape/VoxelShape;offset(DDD)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1096
Lnet/minecraft/class_265;method_1096(DDD)Lnet/minecraft/class_265;
official a
Lfcr;a(DDD)Lfcr;
-
simplify
- Mappings:
Namespace Name Mixin selector named simplify
Lnet/minecraft/util/shape/VoxelShape;simplify()Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1097
Lnet/minecraft/class_265;method_1097()Lnet/minecraft/class_265;
official d
Lfcr;d()Lfcr;
-
forEachEdge
- Mappings:
Namespace Name Mixin selector named forEachEdge
Lnet/minecraft/util/shape/VoxelShape;forEachEdge(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)V
intermediary method_1104
Lnet/minecraft/class_265;method_1104(Lnet/minecraft/class_259$class_260;)V
official a
Lfcr;a(Lfco$a;)V
-
forEachBox
- Mappings:
Namespace Name Mixin selector named forEachBox
Lnet/minecraft/util/shape/VoxelShape;forEachBox(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)V
intermediary method_1089
Lnet/minecraft/class_265;method_1089(Lnet/minecraft/class_259$class_260;)V
official b
Lfcr;b(Lfco$a;)V
-
getBoundingBoxes
- Mappings:
Namespace Name Mixin selector named getBoundingBoxes
Lnet/minecraft/util/shape/VoxelShape;getBoundingBoxes()Ljava/util/List;
intermediary method_1090
Lnet/minecraft/class_265;method_1090()Ljava/util/List;
official e
Lfcr;e()Ljava/util/List;
-
getStartingCoord
- Mappings:
Namespace Name Mixin selector named getStartingCoord
Lnet/minecraft/util/shape/VoxelShape;getStartingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)D
intermediary method_35593
Lnet/minecraft/class_265;method_35593(Lnet/minecraft/class_2350$class_2351;DD)D
official a
Lfcr;a(Ljm$a;DD)D
-
getEndingCoord
- Mappings:
Namespace Name Mixin selector named getEndingCoord
Lnet/minecraft/util/shape/VoxelShape;getEndingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)D
intermediary method_1102
Lnet/minecraft/class_265;method_1102(Lnet/minecraft/class_2350$class_2351;DD)D
official b
Lfcr;b(Ljm$a;DD)D
-
getCoordIndex
- Mappings:
Namespace Name Mixin selector named getCoordIndex
Lnet/minecraft/util/shape/VoxelShape;getCoordIndex(Lnet/minecraft/util/math/Direction$Axis;D)I
intermediary method_1100
Lnet/minecraft/class_265;method_1100(Lnet/minecraft/class_2350$class_2351;D)I
official a
Lfcr;a(Ljm$a;D)I
-
raycast
- Mappings:
Namespace Name Mixin selector 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;
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;
official a
Lfcr;a(Lfbx;Lfbx;Ljh;)Lfbt;
-
getClosestPointTo
Returns the closest point in the shape totarget
.- Returns:
- the closest point in the shape to
target
- Mappings:
Namespace Name Mixin selector named getClosestPointTo
Lnet/minecraft/util/shape/VoxelShape;getClosestPointTo(Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;
intermediary method_33661
Lnet/minecraft/class_265;method_33661(Lnet/minecraft/class_243;)Ljava/util/Optional;
official b
Lfcr;b(Lfbx;)Ljava/util/Optional;
-
getFace
- Mappings:
Namespace Name Mixin selector named getFace
Lnet/minecraft/util/shape/VoxelShape;getFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_20538
Lnet/minecraft/class_265;method_20538(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;
official a
Lfcr;a(Ljm;)Lfcr;
-
getUncachedFace
- Mappings:
Namespace Name Mixin selector named getUncachedFace
Lnet/minecraft/util/shape/VoxelShape;getUncachedFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1098
Lnet/minecraft/class_265;method_1098(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;
official b
Lfcr;b(Ljm;)Lfcr;
-
isCube
protected boolean isCube()- Mappings:
Namespace Name Mixin selector named isCube
Lnet/minecraft/util/shape/VoxelShape;isCube()Z
intermediary method_61897
Lnet/minecraft/class_265;method_61897()Z
official f
Lfcr;f()Z
-
isSquare
- Mappings:
Namespace Name Mixin selector named isSquare
Lnet/minecraft/util/shape/VoxelShape;isSquare(Lnet/minecraft/util/math/Direction$Axis;)Z
intermediary method_61896
Lnet/minecraft/class_265;method_61896(Lnet/minecraft/class_2350$class_2351;)Z
official d
Lfcr;d(Ljm$a;)Z
-
calculateMaxDistance
- Mappings:
Namespace Name Mixin selector named calculateMaxDistance
Lnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;D)D
intermediary method_1108
Lnet/minecraft/class_265;method_1108(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;D)D
official a
Lfcr;a(Ljm$a;Lfbs;D)D
-
calculateMaxDistance
- Mappings:
Namespace Name Mixin selector named calculateMaxDistance
Lnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/AxisCycleDirection;Lnet/minecraft/util/math/Box;D)D
intermediary method_1103
Lnet/minecraft/class_265;method_1103(Lnet/minecraft/class_2335;Lnet/minecraft/class_238;D)D
official a
Lfcr;a(Lje;Lfbs;D)D
-
toString
-