Package me.c7dev.dexterity.util
Class DexTransformation
java.lang.Object
me.c7dev.dexterity.util.DexTransformation
Provides a factory for the
Transformation class-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.util.Transformationbuild()clone()org.bukkit.util.Vectororg.joml.Quaternionforg.joml.Quaternionforg.bukkit.util.Vectororg.bukkit.util.VectorgetScale()static DexTransformationReturns a transformation set so that the scale is 1 and location is in the block centerstatic DexTransformationReturns a transformation set so that the scale is 1 and translation is 0 (the block display's corner)rescale(org.bukkit.util.Vector s) 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) setDisplacement(org.bukkit.util.Vector d) setLeftRotation(org.joml.Quaternionf lr) setRightRotation(org.joml.Quaternionf rr) setRollOffset(org.bukkit.util.Vector v) setScale(float x, float y, float z) setScale(org.bukkit.util.Vector s)
-
Constructor Details
-
DexTransformation
public DexTransformation() -
DexTransformation
public DexTransformation(org.bukkit.util.Transformation trans)
-
-
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
public org.bukkit.util.Vector getScale() -
getDisplacement
public org.bukkit.util.Vector getDisplacement() -
getLeftRotation
public org.joml.Quaternionf getLeftRotation() -
getRightRotation
public org.joml.Quaternionf getRightRotation() -
getRollOffset
public org.bukkit.util.Vector 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
public org.bukkit.util.Transformation build()
-