Class TransformVecBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.TransformVecBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.joml.Vector3f
private org.joml.Vector3f
private org.joml.Vector3f
private org.joml.Vector3f
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) net.minecraft.client.renderer.block.model.ItemTransform
build()
(package private) TransformVecBuilder
copy()
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
private org.joml.Vector3f rotation -
translation
private org.joml.Vector3f translation -
scale
private org.joml.Vector3f scale -
rightRotation
private org.joml.Vector3f rightRotation
-
-
Constructor Details
-
TransformVecBuilder
TransformVecBuilder(net.minecraft.world.item.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
net.minecraft.client.renderer.block.model.ItemTransform build() -
copy
TransformVecBuilder copy()
-