Class DexTransformation
java.lang.Object
me.c7dev.dexterity.util.DexTransformation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
clone()
org.joml.Quaternionf
org.joml.Quaternionf
getScale()
static DexTransformation
Returns a transformation set so that the scale is 1 and location is in the block centerstatic DexTransformation
Returns a transformation set so that the scale is 1 and translation is 0 (the block display's corner)Sets the scale to the input Vector and resets the displacement Creates an easy way to set scale and keep the block display centeredsetDisplacement
(float x, float y, float z) setLeftRotation
(org.joml.Quaternionf lr) setRightRotation
(org.joml.Quaternionf rr) setScale
(float x, float y, float z)
-
Constructor Details
-
DexTransformation
public DexTransformation() -
DexTransformation
-
-
Method Details
-
clone
-
newDefaultTransformation
Returns a transformation set so that the scale is 1 and location is in the block center- Returns:
-
newEmptyTransformation
Returns a transformation set so that the scale is 1 and translation is 0 (the block display's corner)- Returns:
-
getScale
-
getDisplacement
-
getLeftRotation
public org.joml.Quaternionf getLeftRotation() -
getRightRotation
public org.joml.Quaternionf getRightRotation() -
getRollOffset
-
rescale
Sets the scale to the input Vector and resets the displacement Creates an easy way to set scale and keep the block display centered- Parameters:
s
-- Returns:
-
setScale
-
setScale
-
setDisplacement
-
setDisplacement
-
setLeftRotation
-
setRightRotation
-
setRollOffset
-
build
-