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/VoxelShapeintermediary net/minecraft/class_265official fpd
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasCuboid()protected doublecalculateMaxDistance(AxisCycleDirection axisCycle, Box box, double maxDist) doublecalculateMaxDistance(Direction.Axis axis, Box box, double maxDist) booleanvoidforEachBox(VoxelShapes.BoxConsumer consumer) voidforEachEdge(VoxelShapes.BoxConsumer consumer) getClosestPointTo(Vec3d target) Returns the closest point in the shape totarget.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) abstract DoubleListdoublegetStartingCoord(Direction.Axis axis, double from, double to) private VoxelShapegetUncachedFace(Direction facing) protected booleanisCube()booleanisEmpty()private booleanisSquare(Direction.Axis axis) offset(double x, double y, double z) simplify()toString()
-
Field Details
-
voxels
- Mappings:
Namespace Name Mixin selector named voxelsLnet/minecraft/util/shape/VoxelShape;voxels:Lnet/minecraft/util/shape/VoxelSet;intermediary field_1401Lnet/minecraft/class_265;field_1401:Lnet/minecraft/class_251;official aLfpd;a:Lfos;
-
shapeCache
- Mappings:
Namespace Name Mixin selector named shapeCacheLnet/minecraft/util/shape/VoxelShape;shapeCache:[Lnet/minecraft/util/shape/VoxelShape;intermediary field_19318Lnet/minecraft/class_265;field_19318:[Lnet/minecraft/class_265;official bLfpd;b:[Lfpd;
-
-
Constructor Details
-
VoxelShape
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/shape/VoxelShape;<init>(Lnet/minecraft/util/shape/VoxelSet;)Vintermediary <init>Lnet/minecraft/class_265;<init>(Lnet/minecraft/class_251;)Vofficial <init>Lfpd;<init>(Lfos;)V
-
-
Method Details
-
getMin
- Mappings:
Namespace Name Mixin selector named getMinLnet/minecraft/util/shape/VoxelShape;getMin(Lnet/minecraft/util/math/Direction$Axis;)Dintermediary method_1091Lnet/minecraft/class_265;method_1091(Lnet/minecraft/class_2350$class_2351;)Dofficial bLfpd;b(Ljg$a;)D
-
getMax
- Mappings:
Namespace Name Mixin selector named getMaxLnet/minecraft/util/shape/VoxelShape;getMax(Lnet/minecraft/util/math/Direction$Axis;)Dintermediary method_1105Lnet/minecraft/class_265;method_1105(Lnet/minecraft/class_2350$class_2351;)Dofficial cLfpd;c(Ljg$a;)D
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/minecraft/util/shape/VoxelShape;getBoundingBox()Lnet/minecraft/util/math/Box;intermediary method_1107Lnet/minecraft/class_265;method_1107()Lnet/minecraft/class_238;official aLfpd;a()Lfod;
-
asCuboid
- Mappings:
Namespace Name Mixin selector named asCuboidLnet/minecraft/util/shape/VoxelShape;asCuboid()Lnet/minecraft/util/shape/VoxelShape;intermediary method_52620Lnet/minecraft/class_265;method_52620()Lnet/minecraft/class_265;official bLfpd;b()Lfpd;
-
getPointPosition
- Mappings:
Namespace Name Mixin selector named getPointPositionLnet/minecraft/util/shape/VoxelShape;getPointPosition(Lnet/minecraft/util/math/Direction$Axis;I)Dintermediary method_1099Lnet/minecraft/class_265;method_1099(Lnet/minecraft/class_2350$class_2351;I)Dofficial aLfpd;a(Ljg$a;I)D
-
getPointPositions
- Mappings:
Namespace Name Mixin selector named getPointPositionsLnet/minecraft/util/shape/VoxelShape;getPointPositions(Lnet/minecraft/util/math/Direction$Axis;)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;official aLfpd;a(Ljg$a;)Lit/unimi/dsi/fastutil/doubles/DoubleList;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/util/shape/VoxelShape;isEmpty()Zintermediary method_1110Lnet/minecraft/class_265;method_1110()Zofficial cLfpd;c()Z
-
offset
- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/util/shape/VoxelShape;offset(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_64034Lnet/minecraft/class_265;method_64034(Lnet/minecraft/class_243;)Lnet/minecraft/class_265;official aLfpd;a(Lfoi;)Lfpd;
-
offset
- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/util/shape/VoxelShape;offset(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_66507Lnet/minecraft/class_265;method_66507(Lnet/minecraft/class_2382;)Lnet/minecraft/class_265;official aLfpd;a(Lkf;)Lfpd;
-
offset
- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/util/shape/VoxelShape;offset(DDD)Lnet/minecraft/util/shape/VoxelShape;intermediary method_1096Lnet/minecraft/class_265;method_1096(DDD)Lnet/minecraft/class_265;official aLfpd;a(DDD)Lfpd;
-
simplify
- Mappings:
Namespace Name Mixin selector named simplifyLnet/minecraft/util/shape/VoxelShape;simplify()Lnet/minecraft/util/shape/VoxelShape;intermediary method_1097Lnet/minecraft/class_265;method_1097()Lnet/minecraft/class_265;official dLfpd;d()Lfpd;
-
forEachEdge
- Mappings:
Namespace Name Mixin selector named forEachEdgeLnet/minecraft/util/shape/VoxelShape;forEachEdge(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)Vintermediary method_1104Lnet/minecraft/class_265;method_1104(Lnet/minecraft/class_259$class_260;)Vofficial aLfpd;a(Lfpa$a;)V
-
forEachBox
- Mappings:
Namespace Name Mixin selector named forEachBoxLnet/minecraft/util/shape/VoxelShape;forEachBox(Lnet/minecraft/util/shape/VoxelShapes$BoxConsumer;)Vintermediary method_1089Lnet/minecraft/class_265;method_1089(Lnet/minecraft/class_259$class_260;)Vofficial bLfpd;b(Lfpa$a;)V
-
getBoundingBoxes
- Mappings:
Namespace Name Mixin selector named getBoundingBoxesLnet/minecraft/util/shape/VoxelShape;getBoundingBoxes()Ljava/util/List;intermediary method_1090Lnet/minecraft/class_265;method_1090()Ljava/util/List;official eLfpd;e()Ljava/util/List;
-
getStartingCoord
- Mappings:
Namespace Name Mixin selector named getStartingCoordLnet/minecraft/util/shape/VoxelShape;getStartingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)Dintermediary method_35593Lnet/minecraft/class_265;method_35593(Lnet/minecraft/class_2350$class_2351;DD)Dofficial aLfpd;a(Ljg$a;DD)D
-
getEndingCoord
- Mappings:
Namespace Name Mixin selector named getEndingCoordLnet/minecraft/util/shape/VoxelShape;getEndingCoord(Lnet/minecraft/util/math/Direction$Axis;DD)Dintermediary method_1102Lnet/minecraft/class_265;method_1102(Lnet/minecraft/class_2350$class_2351;DD)Dofficial bLfpd;b(Ljg$a;DD)D
-
getCoordIndex
- Mappings:
Namespace Name Mixin selector named getCoordIndexLnet/minecraft/util/shape/VoxelShape;getCoordIndex(Lnet/minecraft/util/math/Direction$Axis;D)Iintermediary method_1100Lnet/minecraft/class_265;method_1100(Lnet/minecraft/class_2350$class_2351;D)Iofficial aLfpd;a(Ljg$a;D)I
-
raycast
- Mappings:
Namespace Name Mixin selector 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;intermediary method_1092Lnet/minecraft/class_265;method_1092(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3965;official aLfpd;a(Lfoi;Lfoi;Lja;)Lfoe;
-
getClosestPointTo
Returns the closest point in the shape totarget.- Returns:
- the closest point in the shape to
target - Mappings:
Namespace Name Mixin selector named getClosestPointToLnet/minecraft/util/shape/VoxelShape;getClosestPointTo(Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;intermediary method_33661Lnet/minecraft/class_265;method_33661(Lnet/minecraft/class_243;)Ljava/util/Optional;official bLfpd;b(Lfoi;)Ljava/util/Optional;
-
getFace
- Mappings:
Namespace Name Mixin selector named getFaceLnet/minecraft/util/shape/VoxelShape;getFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_20538Lnet/minecraft/class_265;method_20538(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;official aLfpd;a(Ljg;)Lfpd;
-
getUncachedFace
- Mappings:
Namespace Name Mixin selector named getUncachedFaceLnet/minecraft/util/shape/VoxelShape;getUncachedFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_1098Lnet/minecraft/class_265;method_1098(Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;official bLfpd;b(Ljg;)Lfpd;
-
isCube
protected boolean isCube()- Mappings:
Namespace Name Mixin selector named isCubeLnet/minecraft/util/shape/VoxelShape;isCube()Zintermediary method_61897Lnet/minecraft/class_265;method_61897()Zofficial fLfpd;f()Z
-
isSquare
- Mappings:
Namespace Name Mixin selector named isSquareLnet/minecraft/util/shape/VoxelShape;isSquare(Lnet/minecraft/util/math/Direction$Axis;)Zintermediary method_61896Lnet/minecraft/class_265;method_61896(Lnet/minecraft/class_2350$class_2351;)Zofficial dLfpd;d(Ljg$a;)Z
-
calculateMaxDistance
- Mappings:
Namespace Name Mixin selector named calculateMaxDistanceLnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;D)Dintermediary method_1108Lnet/minecraft/class_265;method_1108(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;D)Dofficial aLfpd;a(Ljg$a;Lfod;D)D
-
calculateMaxDistance
- Mappings:
Namespace Name Mixin selector named calculateMaxDistanceLnet/minecraft/util/shape/VoxelShape;calculateMaxDistance(Lnet/minecraft/util/math/AxisCycleDirection;Lnet/minecraft/util/math/Box;D)Dintermediary method_1103Lnet/minecraft/class_265;method_1103(Lnet/minecraft/class_2335;Lnet/minecraft/class_238;D)Dofficial aLfpd;a(Lix;Lfod;D)D
-
equals
-
toString
-