@@ -115,9 +115,12 @@ public static BlockPos fromLong(long serialized) {
115115 */
116116 @ StableAPI .Expose
117117 public static Iterable <BlockPos > getAllInBox (@ NonNull BlockPos from , @ NonNull BlockPos to ) {
118- return getAllInBox (Math .min (from .getX (), to .getX ()), Math .min (from .getY (), to .getY ()),
119- Math .min (from .getZ (), to .getZ ()), Math .max (from .getX (), to .getX ()),
120- Math .max (from .getY (), to .getY ()), Math .max (from .getZ (), to .getZ ()));
118+ return getAllInBox (Math .min (from .getX (), to .getX ()),
119+ Math .min (from .getY (), to .getY ()),
120+ Math .min (from .getZ (), to .getZ ()),
121+ Math .max (from .getX (), to .getX ()),
122+ Math .max (from .getY (), to .getY ()),
123+ Math .max (from .getZ (), to .getZ ()));
121124 }
122125
123126 /**
@@ -192,9 +195,12 @@ protected BlockPos computeNext() {
192195 */
193196 @ StableAPI .Expose
194197 public static Iterable <BlockPos .MutableBlockPos > getAllInBoxMutable (@ NonNull BlockPos from , @ NonNull BlockPos to ) {
195- return getAllInBoxMutable (Math .min (from .getX (), to .getX ()), Math .min (from .getY (), to .getY ()),
196- Math .min (from .getZ (), to .getZ ()), Math .max (from .getX (), to .getX ()),
197- Math .max (from .getY (), to .getY ()), Math .max (from .getZ (), to .getZ ()));
198+ return getAllInBoxMutable (Math .min (from .getX (), to .getX ()),
199+ Math .min (from .getY (), to .getY ()),
200+ Math .min (from .getZ (), to .getZ ()),
201+ Math .max (from .getX (), to .getX ()),
202+ Math .max (from .getY (), to .getY ()),
203+ Math .max (from .getZ (), to .getZ ()));
198204 }
199205
200206 /**
@@ -304,7 +310,8 @@ public BlockPos offset(@NonNull EnumFacing facing, int blocks) {
304310 if (blocks == 0 ) {
305311 return this ;
306312 }
307- return new BlockPos (x + facing .getFrontOffsetX () * blocks , y + facing .getFrontOffsetY () * blocks ,
313+ return new BlockPos (x + facing .getFrontOffsetX () * blocks ,
314+ y + facing .getFrontOffsetY () * blocks ,
308315 z + facing .getFrontOffsetZ () * blocks );
309316 }
310317
@@ -380,7 +387,8 @@ public BlockPos rotate(@NonNull Rotation rotation) {
380387
381388 @ Override
382389 public BlockPos crossProduct (@ NonNull Vec3i vec ) {
383- return new BlockPos (y * vec .getZ () - z * vec .getY (), z * vec .getX () - x * vec .getZ (),
390+ return new BlockPos (y * vec .getZ () - z * vec .getY (),
391+ z * vec .getX () - x * vec .getZ (),
384392 x * vec .getY () - y * vec .getX ());
385393 }
386394
@@ -479,7 +487,8 @@ public BlockPos.MutableBlockPos move(@NonNull EnumFacing facing) {
479487
480488 @ StableAPI .Expose
481489 public BlockPos .MutableBlockPos move (@ NonNull EnumFacing facing , int blocks ) {
482- return this .setPos (x + facing .getFrontOffsetX () * blocks , y + facing .getFrontOffsetY () * blocks ,
490+ return this .setPos (x + facing .getFrontOffsetX () * blocks ,
491+ y + facing .getFrontOffsetY () * blocks ,
483492 z + facing .getFrontOffsetZ () * blocks );
484493 }
485494 }
0 commit comments