public class Suffocate.SuffocateSpiral
extends org.bukkit.scheduler.BukkitRunnable
Constructor and Description |
---|
SuffocateSpiral(org.bukkit.entity.LivingEntity lent,
int totalSteps,
double radius,
long interval,
double dx,
double dy,
double dz,
Suffocate.SpiralType type) |
SuffocateSpiral(org.bukkit.Location startLoc,
int totalSteps,
double radius,
long interval,
double dx,
double dy,
double dz,
Suffocate.SpiralType type) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Starts the initial animation, and removes itself when it is finished.
|
public SuffocateSpiral(org.bukkit.entity.LivingEntity lent, int totalSteps, double radius, long interval, double dx, double dy, double dz, Suffocate.SpiralType type)
lent
- The entity to animate the spiral aroundtotalSteps
- Amount of times it will be animatedradius
- The radius of the spiralinterval
- The speed of the animationdx
- x offsetdy
- y offsetdz
- z offsettype
- Spiral animation directionpublic SuffocateSpiral(org.bukkit.Location startLoc, int totalSteps, double radius, long interval, double dx, double dy, double dz, Suffocate.SpiralType type)
startLoc
- Initial locationtotalSteps
- Amount of times it will be animatedradius
- The radius of the spiralinterval
- The speed of the animationdx
- x offsetdy
- y offsetdz
- z offsettype
- Spiral animation direction