public class ModelBuilder.ElementBuilder.RotationBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
angle |
private Direction.Axis |
axis |
private Vector3f |
origin |
private boolean |
rescale |
Constructor and Description |
---|
RotationBuilder() |
Modifier and Type | Method and Description |
---|---|
ModelBuilder.ElementBuilder.RotationBuilder |
angle(float angle) |
ModelBuilder.ElementBuilder.RotationBuilder |
axis(Direction.Axis axis) |
(package private) BlockPartRotation |
build() |
ModelBuilder.ElementBuilder |
end() |
ModelBuilder.ElementBuilder.RotationBuilder |
origin(float x,
float y,
float z) |
ModelBuilder.ElementBuilder.RotationBuilder |
rescale(boolean rescale) |
private Vector3f origin
private Direction.Axis axis
private float angle
private boolean rescale
public ModelBuilder.ElementBuilder.RotationBuilder origin(float x, float y, float z)
public ModelBuilder.ElementBuilder.RotationBuilder axis(Direction.Axis axis)
axis
- the axis of rotationjava.lang.NullPointerException
- if axis
is null
public ModelBuilder.ElementBuilder.RotationBuilder angle(float angle)
angle
- the rotation anglejava.lang.IllegalArgumentException
- if angle
is invalid (not one of 0, +/-22.5, +/-45)public ModelBuilder.ElementBuilder.RotationBuilder rescale(boolean rescale)
BlockPartRotation build()
public ModelBuilder.ElementBuilder end()