Class TransformVecBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.TransformVecBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ItemTransformbuild()(package private) TransformVecBuildercopy()rightRotation(float x, float y, float z) Sets the right rotation for this transformation.rotation(float x, float y, float z) Sets the rotation for this transformation.scale(float sc) Sets the scale for this transformation, scaling all axis by the same amount.scale(float x, float y, float z) Sets the scale for this transformation.translation(float x, float y, float z) Sets the translation for this transformation.
-
Field Details
-
rotation
-
translation
-
scale
-
rightRotation
-
-
Constructor Details
-
TransformVecBuilder
TransformVecBuilder(ItemDisplayContext type)
-
-
Method Details
-
rotation
Sets the rotation for this transformation.This rotation is considered the "left rotation" when also using rightRotation(float, float, float).
-
translation
Sets the translation for this transformation. -
scale
Sets the scale for this transformation, scaling all axis by the same amount.- See Also:
-
scale
Sets the scale for this transformation. -
rightRotation
Sets the right rotation for this transformation.To set the left rotation use rotation(float, float, float).
-
build
ItemTransform build() -
copy
TransformVecBuilder copy()
-