Class RotationHandler
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
- Direct Known Subclasses:
ParticleShapeCompound,ParticleShaper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bukkit.Locationprotected final List<ParticleShapeCompound> protected final org.bukkit.Locationprotected final List<LocationSafe> protected final org.bukkit.Locationprotected final List<org.bukkit.Location> protected final org.bukkit.Locationprotected final Rotationprotected final org.bukkit.util.Vectorprotected final Rotationprotected final Rotationprotected final Rotation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCompound(ParticleShapeCompound compound, RotationHandler shape) protected voidcalculateCentroid(List<? extends org.bukkit.Location> locations) voidface(org.bukkit.Location toFace) voidfaceAroundLocation(org.bukkit.Location toFace, org.bukkit.Location around) doubledoubledoubledoubledoubledoubledoubledoubledoubleorg.bukkit.Locationprotected double[]getDirection(org.bukkit.Location toFace, org.bukkit.Location around) intorg.bukkit.Location[]protected ArrayListSafe<LocationSafe> getLocationsList(RotationHandler other) doublegetPitch()doublegetRoll()doubleorg.bukkit.WorldgetWorld()doublegetYaw()voidmove(double x, double y, double z) voidmove(org.bukkit.Location location) voidmove(org.bukkit.util.Vector vector) protected booleanrecalculateIfNeeded(org.bukkit.Location around) protected voidremoveCompound(ParticleShapeCompound compound, RotationHandler shape) voidrotate(double pitch, double yaw, double roll) voidrotateAroundLocation(org.bukkit.Location around, double pitch, double yaw, double roll) voidscale(double scale) voidscale(double x, double y, double z) voidsetAroundAxisPitch(org.bukkit.Location around, double pitch) voidsetAroundAxisRoll(org.bukkit.Location around, double roll) voidsetAroundAxisRotation(org.bukkit.Location around, double pitch, double yaw, double roll) voidsetAroundAxisYaw(org.bukkit.Location around, double yaw) voidsetAroundPitch(org.bukkit.Location around, double pitch) voidsetAroundRoll(org.bukkit.Location around, double roll) voidsetAroundRotation(org.bukkit.Location around, double pitch, double yaw, double roll) voidsetAroundRotationOrder(org.bukkit.Location around, Rotation.Axis first, Rotation.Axis second, Rotation.Axis third) voidsetAroundYaw(org.bukkit.Location around, double yaw) voidsetAxisPitch(double pitch) voidsetAxisRoll(double roll) voidsetAxisRotation(double pitch, double yaw, double roll) voidsetAxisYaw(double yaw) voidsetPitch(double pitch) voidsetRoll(double roll) voidsetRotation(double pitch, double yaw, double roll) voidsetRotationOrder(Rotation.Axis first, Rotation.Axis second, Rotation.Axis third) voidsetWorld(org.bukkit.World world) voidsetYaw(double yaw)
-
Field Details
-
locations
-
origins
-
compounds
-
rot
-
rot2
-
rotHelper
-
originalCentroid
protected final org.bukkit.Location originalCentroid -
lastRotatedAround
protected final org.bukkit.Location lastRotatedAround -
centroid
protected final org.bukkit.Location centroid -
rhRotHelper
-
rhLocationHelper
protected final org.bukkit.Location rhLocationHelper -
rhVectorHelper
protected final org.bukkit.util.Vector rhVectorHelper
-
-
Constructor Details
-
RotationHandler
public RotationHandler()
-
-
Method Details
-
rotate
public void rotate(double pitch, double yaw, double roll) -
rotateAroundLocation
public void rotateAroundLocation(org.bukkit.Location around, double pitch, double yaw, double roll) -
face
public void face(org.bukkit.Location toFace) -
faceAroundLocation
public void faceAroundLocation(org.bukkit.Location toFace, org.bukkit.Location around) -
move
public void move(double x, double y, double z) -
move
public void move(org.bukkit.util.Vector vector) -
move
public void move(org.bukkit.Location location) -
scale
public void scale(double x, double y, double z) -
scale
public void scale(double scale) -
recalculateIfNeeded
protected boolean recalculateIfNeeded(@Nullable org.bukkit.Location around) -
getDirection
protected double[] getDirection(org.bukkit.Location toFace, org.bukkit.Location around) -
calculateCentroid
-
addCompound
-
removeCompound
-
getLocationsList
-
setWorld
public void setWorld(org.bukkit.World world) -
setRotation
public void setRotation(double pitch, double yaw, double roll) -
setRotationOrder
-
setPitch
public void setPitch(double pitch) -
setYaw
public void setYaw(double yaw) -
setRoll
public void setRoll(double roll) -
setAroundRotation
public void setAroundRotation(org.bukkit.Location around, double pitch, double yaw, double roll) -
setAroundRotationOrder
public void setAroundRotationOrder(org.bukkit.Location around, Rotation.Axis first, Rotation.Axis second, Rotation.Axis third) -
setAroundPitch
public void setAroundPitch(org.bukkit.Location around, double pitch) -
setAroundYaw
public void setAroundYaw(org.bukkit.Location around, double yaw) -
setAroundRoll
public void setAroundRoll(org.bukkit.Location around, double roll) -
setAxisRotation
public void setAxisRotation(double pitch, double yaw, double roll) -
setAxisPitch
public void setAxisPitch(double pitch) -
setAxisYaw
public void setAxisYaw(double yaw) -
setAxisRoll
public void setAxisRoll(double roll) -
setAroundAxisRotation
public void setAroundAxisRotation(org.bukkit.Location around, double pitch, double yaw, double roll) -
setAroundAxisPitch
public void setAroundAxisPitch(org.bukkit.Location around, double pitch) -
setAroundAxisYaw
public void setAroundAxisYaw(org.bukkit.Location around, double yaw) -
setAroundAxisRoll
public void setAroundAxisRoll(org.bukkit.Location around, double roll) -
getWorld
public org.bukkit.World getWorld() -
getRotationOrder
-
getPitch
public double getPitch() -
getYaw
public double getYaw() -
getRoll
public double getRoll() -
getAroundRotationOrder
-
getAroundPitch
public double getAroundPitch() -
getAroundYaw
public double getAroundYaw() -
getAroundRoll
public double getAroundRoll() -
getAxisPitch
public double getAxisPitch() -
getAxisYaw
public double getAxisYaw() -
getAxisRoll
public double getAxisRoll() -
getAroundAxisPitch
public double getAroundAxisPitch() -
getAroundAxisYaw
public double getAroundAxisYaw() -
getAroundAxisRoll
public double getAroundAxisRoll() -
getLocations
public org.bukkit.Location[] getLocations() -
getLocationAmount
public int getLocationAmount() -
getTotalDistance
public double getTotalDistance() -
getClonedCenter
public org.bukkit.Location getClonedCenter()
-