Class VolumePositionTranslators
- java.lang.Object
-
- org.spongepowered.api.world.volume.stream.VolumePositionTranslators
-
public final class VolumePositionTranslators extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Vector3d
BLOCK_OFFSET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <W extends Volume,E>
VolumePositionTranslator<W,E>identity()
static <W extends Volume,E>
VolumePositionTranslator<W,E>offset(Vector3d min)
static <W extends Volume,E>
VolumePositionTranslator<W,E>offset(Vector3i min)
static <W extends Volume,E>
VolumePositionTranslator<W,E>position(java.util.function.Function<Vector3d,Vector3d> func)
static <W extends Volume,E>
VolumePositionTranslator<W,E>relativeTo(Vector3d newOrigin)
static <W extends Volume,E>
VolumePositionTranslator<W,E>relativeTo(Vector3i newOrigin)
static <W extends Volume>
VolumePositionTranslator<W,BlockState>rotateBlocksOn(Vector3i start, Vector3d center, Rotation rotation)
static <W extends Volume,E>
VolumePositionTranslator<W,E>rotateOn(Vector3i start, Vector3d center, Rotation rotation, java.util.function.BiFunction<Vector3d,E,E> elementRotation)
-
-
-
Field Detail
-
BLOCK_OFFSET
public static final Vector3d BLOCK_OFFSET
-
-
Method Detail
-
identity
public static <W extends Volume,E> VolumePositionTranslator<W,E> identity()
-
rotateBlocksOn
public static <W extends Volume> VolumePositionTranslator<W,BlockState> rotateBlocksOn(Vector3i start, Vector3d center, Rotation rotation)
-
rotateOn
public static <W extends Volume,E> VolumePositionTranslator<W,E> rotateOn(Vector3i start, Vector3d center, Rotation rotation, java.util.function.BiFunction<Vector3d,E,E> elementRotation)
-
relativeTo
public static <W extends Volume,E> VolumePositionTranslator<W,E> relativeTo(Vector3i newOrigin)
-
relativeTo
public static <W extends Volume,E> VolumePositionTranslator<W,E> relativeTo(Vector3d newOrigin)
-
offset
public static <W extends Volume,E> VolumePositionTranslator<W,E> offset(Vector3i min)
-
offset
public static <W extends Volume,E> VolumePositionTranslator<W,E> offset(Vector3d min)
-
position
public static <W extends Volume,E> VolumePositionTranslator<W,E> position(java.util.function.Function<Vector3d,Vector3d> func)
-
-