E
- The type of extentpublic static interface Transform.Builder<E extends Extent>
GameRegistry.createTransformBuilder()
.
The builder uses the default values for position and
rotation of (0, 0, 0) and scale of (1, 1, 1).
Only the extent must be set to build and not doing so
results in a state exception.Modifier and Type | Method and Description |
---|---|
Transform<E> |
build()
Creates a new transform from the configured builder.
|
Transform.Builder<E> |
extent(E extent)
Sets the extent of this transform.
|
Transform.Builder<E> |
position(com.flowpowered.math.vector.Vector3d position)
Sets the position of this transform.
|
Transform.Builder<E> |
rotation(com.flowpowered.math.imaginary.Quaterniond rotation)
Sets the rotation of this transform.
|
Transform.Builder<E> |
rotation(com.flowpowered.math.vector.Vector3d rotation)
Sets the rotation of this transform.
|
Transform.Builder<E> |
scale(com.flowpowered.math.vector.Vector3d scale)
Sets the scale of this transform.
|
Transform.Builder<E> extent(E extent)
extent
- The extentTransform.Builder<E> position(com.flowpowered.math.vector.Vector3d position)
position
- The positionTransform.Builder<E> rotation(com.flowpowered.math.vector.Vector3d rotation)
rotation
- The rotationTransform.Builder<E> rotation(com.flowpowered.math.imaginary.Quaterniond rotation)
rotation
- The extentTransform.Builder<E> scale(com.flowpowered.math.vector.Vector3d scale)
scale
- The scaleTransform<E> build()
IllegalStateException
- If the extent hasn't been set