Class RotationBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.RotationBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangle
(float angle) axis
(net.minecraft.core.Direction.Axis axis) (package private) net.minecraft.client.renderer.block.model.BlockElementRotation
build()
(package private) RotationBuilder
copy()
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.
-
Field Details
-
origin
@Nullable private @Nullable org.joml.Vector3f origin -
axis
@Nullable private net.minecraft.core.Direction.Axis axis -
angle
private float angle -
rescale
private boolean rescale
-
-
Constructor Details
-
RotationBuilder
public RotationBuilder()
-
-
Method Details
-
origin
Sets the origin point for this rotation. -
axis
- Parameters:
axis
- the axis of rotation- Returns:
- this builder
- Throws:
NullPointerException
- ifaxis
isnull
-
angle
- Parameters:
angle
- the rotation angle- Returns:
- this builder
- Throws:
IllegalArgumentException
- ifangle
is invalid (not one of 0, +/-22.5, +/-45)
-
rescale
Sets whether or not the quad should be scaled after rotation to maintain its relative size. -
build
net.minecraft.client.renderer.block.model.BlockElementRotation build() -
copy
RotationBuilder copy()
-