Class ModelBuilder.ElementBuilder.RotationBuilder
- java.lang.Object
-
- net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.RotationBuilder
-
- Enclosing class:
- ModelBuilder.ElementBuilder
public class ModelBuilder.ElementBuilder.RotationBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RotationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
origin
private Vector3f origin
-
axis
private Direction.Axis axis
-
angle
private float angle
-
rescale
private boolean rescale
-
-
Method Detail
-
origin
public ModelBuilder.ElementBuilder.RotationBuilder origin(float x, float y, float z)
-
axis
public ModelBuilder.ElementBuilder.RotationBuilder axis(Direction.Axis axis)
- Parameters:
axis
- the axis of rotation- Returns:
- this builder
- Throws:
java.lang.NullPointerException
- ifaxis
isnull
-
angle
public ModelBuilder.ElementBuilder.RotationBuilder angle(float angle)
- Parameters:
angle
- the rotation angle- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- ifangle
is invalid (not one of 0, +/-22.5, +/-45)
-
rescale
public ModelBuilder.ElementBuilder.RotationBuilder rescale(boolean rescale)
-
build
BlockPartRotation build()
-
end
public ModelBuilder.ElementBuilder end()
-
-