Class AirStrike
java.lang.Object
me.deecaad.weaponmechanics.weapon.explode.AirStrike
- All Implemented Interfaces:
me.deecaad.core.file.Serializer<AirStrike>
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for serializerAirStrike(Projectile projectile, int min, int max, double height, double yVariation, double distance, double radius, int loops, int delay, Detonation detonation, me.deecaad.core.mechanics.MechanicManager mechanics) See arguments. -
Method Summary
Modifier and TypeMethodDescriptionintgetDelay()doubledoubleintgetLoops()intgetMax()intgetMin()doubledoubleserialize(me.deecaad.core.file.SerializeData data) voidsetDelay(int delay) voidsetDetonation(Detonation detonation) voidsetDistanceBetweenSquared(double distanceBetweenSquared) voidsetHeight(double height) voidsetLoops(int loops) voidsetMax(int max) voidsetMin(int min) voidsetProjectile(Projectile projectile) voidsetRadius(double radius) voidsetyVariation(double yVariation) voidtrigger(org.bukkit.Location flareLocation, org.bukkit.entity.LivingEntity shooter, WeaponProjectile projectile) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
Constructor Details
-
AirStrike
public AirStrike()Default constructor for serializer -
AirStrike
public AirStrike(Projectile projectile, int min, int max, double height, double yVariation, double distance, double radius, int loops, int delay, Detonation detonation, me.deecaad.core.mechanics.MechanicManager mechanics) See arguments.- Parameters:
projectile- The non-null projectile to spawn for each bomb.min- The minimum number of bombs to spawn (per layer).max- The maximum number of bombs to spawn (per layer).height- The vertical distance above the initial projectile to spawn the layers.yVariation- The random variations in theheightparameter.distance- The minimum distance between bombs.radius- The maximum horizontal distance away from the initial projectile that a bomb is allowed to spawn. Larger numbers means higher spread.loops- The number of layers of bombs to spawn.delay- The amount of time (in ticks) between each layer of bombs.
-
-
Method Details
-
getProjectile
-
setProjectile
-
getMin
public int getMin() -
setMin
public void setMin(int min) -
getMax
public int getMax() -
setMax
public void setMax(int max) -
getHeight
public double getHeight() -
setHeight
public void setHeight(double height) -
getyVariation
public double getyVariation() -
setyVariation
public void setyVariation(double yVariation) -
getDistanceBetweenSquared
public double getDistanceBetweenSquared() -
setDistanceBetweenSquared
public void setDistanceBetweenSquared(double distanceBetweenSquared) -
getRadius
public double getRadius() -
setRadius
public void setRadius(double radius) -
getLoops
public int getLoops() -
setLoops
public void setLoops(int loops) -
getDelay
public int getDelay() -
setDelay
public void setDelay(int delay) -
getDetonation
-
setDetonation
-
trigger
public void trigger(org.bukkit.Location flareLocation, org.bukkit.entity.LivingEntity shooter, WeaponProjectile projectile) -
serialize
@NotNull public AirStrike serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<AirStrike>- Throws:
me.deecaad.core.file.SerializerException
-