Class Flashbang
java.lang.Object
me.deecaad.weaponmechanics.weapon.explode.Flashbang
- All Implemented Interfaces:
me.deecaad.core.file.Serializer<Flashbang>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEffect(ExplosionExposure exposure, org.bukkit.Location origin, org.bukkit.entity.LivingEntity entity) voideffect(WeaponProjectile projectile, org.bukkit.entity.LivingEntity entity, org.bukkit.Location origin) doubleme.deecaad.core.mechanics.MechanicManagerserialize(me.deecaad.core.file.SerializeData data) voidsetDistance(double distance) voidsetMechanics(me.deecaad.core.mechanics.MechanicManager mechanics) voidtrigger(ExplosionExposure exposure, WeaponProjectile projectile, org.bukkit.Location origin) Triggers this flashbang at this location, effecting all living entities in the radiusdistanceMethods 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
-
Flashbang
public Flashbang() -
Flashbang
public Flashbang(double distance, me.deecaad.core.mechanics.MechanicManager mechanics)
-
-
Method Details
-
getDistance
public double getDistance() -
setDistance
public void setDistance(double distance) -
getMechanics
public me.deecaad.core.mechanics.MechanicManager getMechanics() -
setMechanics
public void setMechanics(me.deecaad.core.mechanics.MechanicManager 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 radiusdistance- Parameters:
exposure- The exposure type usedprojectile- The projectile usedorigin- 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 Flashbang serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<Flashbang>- Throws:
me.deecaad.core.file.SerializerException
-