Package me.deecaad.core.utils
Class EntityTransform
java.lang.Object
me.deecaad.core.utils.Transform
me.deecaad.core.utils.EntityTransform
Wraps a bukkit
Entity to use Transform methods easily. Entity transforms cannot
have parents, but they can have children. Not very performance friendly when having many
children, since the quaternions are not cached every tick.
TODO add cache to deal with potential performance problems
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRotation(Quaternion rotation) org.bukkit.util.VectorvoidsetLocalPosition(org.bukkit.util.Vector localPosition) voidsetLocalRotation(Quaternion localRotation) voidMethods inherited from class me.deecaad.core.utils.Transform
debug, getChild, getForward, getPosition, getRight, getRotation, getUp, setForward, setPosition, setPosition, setRight, setRotation, setUp
-
Constructor Details
-
EntityTransform
public EntityTransform(org.bukkit.entity.Entity entity)
-
-
Method Details
-
getParent
-
setParent
-
getLocalPosition
public org.bukkit.util.Vector getLocalPosition()- Overrides:
getLocalPositionin classTransform
-
setLocalPosition
public void setLocalPosition(org.bukkit.util.Vector localPosition) - Overrides:
setLocalPositionin classTransform
-
getLocalRotation
- Overrides:
getLocalRotationin classTransform
-
setLocalRotation
- Overrides:
setLocalRotationin classTransform
-
applyRotation
- Overrides:
applyRotationin classTransform
-