Class RotationBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.RotationBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Vector3fprivate booleanprivate @Nullable BlockElementRotation.RotationValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) BlockElementRotationbuild()(package private) RotationBuildercopy()eulerXYZ(float angleX, float angleY, float angleZ) Specify a rotation around multiple axis.origin(float x, float y, float z) Sets the origin point for this rotation.rescale(boolean rescale) Sets whether or not the quad should be scaled after rotation to maintain its relative size.singleAxis(Direction.Axis axis, float angle) Specify a rotation around a single axis.
-
Field Details
-
origin
-
value
-
rescale
private boolean rescale
-
-
Constructor Details
-
RotationBuilder
public RotationBuilder()
-
-
Method Details
-
origin
Sets the origin point for this rotation. -
singleAxis
Specify a rotation around a single axis.- Parameters:
axis- the axis of rotationangle- the rotation angle around the specified axis- Returns:
- this builder
- Throws:
NullPointerException- ifaxisisnull
-
eulerXYZ
Specify a rotation around multiple axis.- Parameters:
angleX- the rotation angle around the X axisangleY- the rotation angle around the Y axisangleZ- the rotation angle around the Z axis- Returns:
- this builder
-
rescale
Sets whether or not the quad should be scaled after rotation to maintain its relative size. -
build
BlockElementRotation build() -
copy
RotationBuilder copy()
-