Class VolumePositionTranslators
java.lang.Object
org.spongepowered.api.world.volume.stream.VolumePositionTranslators
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <W extends Volume,
E>
VolumePositionTranslator<W, E> identity()
static <W extends Volume,
E>
VolumePositionTranslator<W, E> static <W extends Volume,
E>
VolumePositionTranslator<W, E> static <W extends Volume,
E>
VolumePositionTranslator<W, E> 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, BiFunction<Vector3d, E, E> elementRotation)
-
Field Details
-
BLOCK_OFFSET
-
-
Method Details
-
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, BiFunction<Vector3d, E, E> elementRotation) -
relativeTo
-
relativeTo
-
offset
-
offset
-
position
public static <W extends Volume,E> VolumePositionTranslator<W,E> position(Function<Vector3d, Vector3d> func)
-