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

public class Flashbang extends Object implements me.deecaad.core.file.Serializer<Flashbang>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Flashbang(double distance, me.deecaad.core.mechanics.Mechanics mechanics)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canEffect(ExplosionExposure exposure, org.bukkit.Location origin, org.bukkit.entity.LivingEntity entity)
     
    void
    effect(WeaponProjectile projectile, org.bukkit.entity.LivingEntity entity, org.bukkit.Location origin)
     
    double
     
    me.deecaad.core.mechanics.Mechanics
     
    @NotNull Flashbang
    serialize(@NotNull me.deecaad.core.file.SerializeData data)
     
    void
    setDistance(double distance)
     
    void
    setMechanics(me.deecaad.core.mechanics.Mechanics mechanics)
     
    void
    trigger(ExplosionExposure exposure, WeaponProjectile projectile, org.bukkit.Location origin)
    Triggers this flashbang at this location, effecting all living entities in the radius distance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface me.deecaad.core.file.Serializer

    canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
  • Constructor Details

    • Flashbang

      public Flashbang()
    • Flashbang

      public Flashbang(double distance, me.deecaad.core.mechanics.Mechanics mechanics)
  • Method Details

    • getDistance

      public double getDistance()
    • setDistance

      public void setDistance(double distance)
    • getMechanics

      public me.deecaad.core.mechanics.Mechanics getMechanics()
    • setMechanics

      public void setMechanics(me.deecaad.core.mechanics.Mechanics mechanics)
    • trigger

      public void trigger(ExplosionExposure exposure, WeaponProjectile projectile, org.bukkit.Location origin)
      Triggers this flashbang at this location, effecting all living entities in the radius distance
      Parameters:
      exposure - The exposure type used
      projectile - The projectile used
      origin - The center of the flashbang
    • canEffect

      public boolean canEffect(ExplosionExposure exposure, org.bukkit.Location origin, org.bukkit.entity.LivingEntity entity)
    • effect

      public void effect(WeaponProjectile projectile, org.bukkit.entity.LivingEntity entity, org.bukkit.Location origin)
    • serialize

      @NotNull public @NotNull Flashbang serialize(@NotNull @NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException
      Specified by:
      serialize in interface me.deecaad.core.file.Serializer<Flashbang>
      Throws:
      me.deecaad.core.file.SerializerException