Class DistanceExposure

java.lang.Object
me.deecaad.weaponmechanics.weapon.explode.exposures.DistanceExposure
All Implemented Interfaces:
ExplosionExposure

public class DistanceExposure extends Object implements ExplosionExposure
  • Constructor Details

    • DistanceExposure

      public DistanceExposure()
  • Method Details

    • mapExposures

      @NotNull public @NotNull me.deecaad.core.utils.primitive.DoubleMap<org.bukkit.entity.LivingEntity> mapExposures(@NotNull @NotNull org.bukkit.Location origin, @NotNull @NotNull ExplosionShape shape)
      Description copied from interface: ExplosionExposure
      This method should return a list of entities that are within this Explosion triggered at the given Location. Conditions (Like player team, the cause of the explosion, etc) are not used to filter entities, that is handled separately The Double generic represents how much "impact" the player gets. This should be a number (0, 1] Higher numbers mean more damage and knockback
      Specified by:
      mapExposures in interface ExplosionExposure
      Parameters:
      origin - Where the explosion spawns
      shape - The shape of the explosion
      Returns:
      The effected players and their impact level