java.lang.Object
me.deecaad.weaponmechanics.weapon.explode.AirStrike
All Implemented Interfaces:
me.deecaad.core.file.Serializer<AirStrike>

public class AirStrike extends Object implements me.deecaad.core.file.Serializer<AirStrike>
  • 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 the height parameter.
      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

      public Projectile getProjectile()
    • setProjectile

      public void setProjectile(Projectile projectile)
    • 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

      public Detonation getDetonation()
    • setDetonation

      public void setDetonation(Detonation detonation)
    • 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:
      serialize in interface me.deecaad.core.file.Serializer<AirStrike>
      Throws:
      me.deecaad.core.file.SerializerException