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.RotationBuilderangle(float angle)ModelBuilder.ElementBuilder.RotationBuilderaxis(Direction.Axis axis)(package private) BlockPartRotationbuild()ModelBuilder.ElementBuilderend()ModelBuilder.ElementBuilder.RotationBuilderorigin(float x, float y, float z)ModelBuilder.ElementBuilder.RotationBuilderrescale(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- ifaxisisnull
-
angle
public ModelBuilder.ElementBuilder.RotationBuilder angle(float angle)
- Parameters:
angle- the rotation angle- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- ifangleis invalid (not one of 0, +/-22.5, +/-45)
-
rescale
public ModelBuilder.ElementBuilder.RotationBuilder rescale(boolean rescale)
-
build
BlockPartRotation build()
-
end
public ModelBuilder.ElementBuilder end()
-
-