Class ModelBuilder.ElementBuilder.RotationBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.RotationBuilder
- Enclosing class:
- ModelBuilder.ElementBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate Direction.Axisprivate org.joml.Vector3fprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangle(float angle) axis(Direction.Axis axis) (package private) BlockElementRotationbuild()end()origin(float x, float y, float z) rescale(boolean rescale)
-
Field Details
-
origin
private org.joml.Vector3f origin -
axis
-
angle
private float angle -
rescale
private boolean rescale
-
-
Constructor Details
-
RotationBuilder
public RotationBuilder()
-
-
Method Details
-
origin
-
axis
- Parameters:
axis- the axis of rotation- Returns:
- this builder
- Throws:
NullPointerException- ifaxisisnull
-
angle
- Parameters:
angle- the rotation angle- Returns:
- this builder
- Throws:
IllegalArgumentException- ifangleis invalid (not one of 0, +/-22.5, +/-45)
-
rescale
-
build
BlockElementRotation build() -
end
-