Class OptimizedExposure
java.lang.Object
me.deecaad.weaponmechanics.weapon.explode.exposures.OptimizedExposure
- All Implemented Interfaces:
ExplosionExposure
-
Field Summary
Fields inherited from interface me.deecaad.weaponmechanics.weapon.explode.exposures.ExplosionExposure
FOV -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidlerp(org.bukkit.util.Vector reuse, org.bukkit.util.Vector min, org.bukkit.util.Vector max, double x, double y, double z) @NotNull me.deecaad.core.utils.primitive.DoubleMap<org.bukkit.entity.LivingEntity> mapExposures(@NotNull org.bukkit.Location origin, @NotNull ExplosionShape shape) This method should return a list of entities that are within thisExplosiontriggered at the givenLocation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.weaponmechanics.weapon.explode.exposures.ExplosionExposure
canSee, canSee
-
Constructor Details
-
OptimizedExposure
public OptimizedExposure()
-
-
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:ExplosionExposureThis method should return a list of entities that are within thisExplosiontriggered at the givenLocation. Conditions (Like player team, the cause of the explosion, etc) are not used to filter entities, that is handled separately TheDoublegeneric represents how much "impact" the player gets. This should be a number (0, 1] Higher numbers mean more damage and knockback- Specified by:
mapExposuresin interfaceExplosionExposure- Parameters:
origin- Where the explosion spawnsshape- The shape of the explosion- Returns:
- The effected players and their impact level
-
lerp
public static void lerp(org.bukkit.util.Vector reuse, org.bukkit.util.Vector min, org.bukkit.util.Vector max, double x, double y, double z)
-