public class Suffocate extends AirAbility
Modifier and Type | Class and Description |
---|---|
static class |
Suffocate.SpiralType |
class |
Suffocate.SuffocateSpiral
** Animates a Spiral of air particles around a location or a targetted
entity.
|
Constructor and Description |
---|
Suffocate(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
void |
animate()
Animates this instance of the Suffocate ability.
|
static void |
breakSuffocate(org.bukkit.entity.Entity entity)
Stops an entity from being suffocated
|
void |
breakSuffocateLocal(org.bukkit.entity.Entity entity)
Stops an entity from being suffocated
|
double |
getAnimationSpeed() |
double |
getBlind() |
double |
getBlindDelay() |
double |
getBlindRepeat() |
long |
getChargeTime() |
double |
getConstantAimRadius() |
long |
getCooldown() |
double |
getDamage() |
double |
getDamageDelay() |
double |
getDamageRepeat() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
int |
getParticleCount() |
double |
getRadius() |
double |
getRange() |
double |
getSlow() |
double |
getSlowDelay() |
double |
getSlowRepeat() |
java.util.ArrayList<org.bukkit.entity.LivingEntity> |
getTargets() |
java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> |
getTasks() |
static boolean |
isBreathbent(org.bukkit.entity.Entity entity)
Checks if an entity is being suffocated
|
boolean |
isCanSuffocateUndead() |
static boolean |
isChannelingSphere(org.bukkit.entity.Player player)
Determines if a player is Suffocating entities
|
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isRequireConstantAim() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
boolean |
isStarted() |
void |
progress()
Causes the ability to be updated.
|
void |
remove()
Removes this instance of the ability
|
static void |
remove(org.bukkit.entity.Player player)
Removes an instance of Suffocate if player is the one suffocating
entities
|
static boolean |
removeAtLocation(org.bukkit.entity.Player causer,
org.bukkit.Location loc,
double radius)
Removes all instances of Suffocate at loc within the radius threshold.
|
void |
setAnimationSpeed(double animationSpeed) |
void |
setBlind(double blind) |
void |
setBlindDelay(double blindDelay) |
void |
setBlindRepeat(double blindRepeat) |
void |
setCanSuffocateUndead(boolean canSuffocateUndead) |
void |
setChargeTime(long chargeTime) |
void |
setConstantAimRadius(double constantAimRadius) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setDamageDelay(double damageDelay) |
void |
setDamageRepeat(double damageRepeat) |
void |
setParticleCount(int particleCount) |
void |
setRadius(double radius) |
void |
setRange(double range) |
void |
setRequireConstantAim(boolean requireConstantAim) |
void |
setSlow(double slow) |
void |
setSlowDelay(double slowDelay) |
void |
setSlowRepeat(double slowRepeat) |
void |
setStarted(boolean started) |
breakBreathbendingHold, getAirbendingParticles, getElement, isExplosiveAbility, isIgniteAbility, isWithinAirShield, playAirbendingParticles, playAirbendingParticles, playAirbendingSound, removeAirSpouts, removeAirSpouts
getTransparentMaterial, getTransparentMaterialSet, isDay, isEarth, isEarth, isFullMoon, isIce, isIce, isLava, isLava, isLunarEclipse, isMeltable, isMetal, isMetal, isMetalBlock, isNegativeEffect, isNeutralEffect, isNight, isPlant, isPlant, isPositiveEffect, isSand, isSand, isSnow, isSnow, isSolarEclipse, isSozinsComet, isTransparent, isTransparent, isTransparent, isUndead, isWater, isWater
getAbilities, getAbilities, getAbilities, getAbilitiesByElement, getAbility, getAbility, getBendingPlayer, getConfig, getDebugString, getDescription, getId, getLanguageConfig, getPlayer, getPlayers, getStartTime, hasAbility, isEnabled, isHiddenAbility, isRemoved, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, start
public void progress()
Ability
public static void breakSuffocate(org.bukkit.entity.Entity entity)
public static boolean isBreathbent(org.bukkit.entity.Entity entity)
public static boolean isChannelingSphere(org.bukkit.entity.Player player)
public static void remove(org.bukkit.entity.Player player)
public static boolean removeAtLocation(org.bukkit.entity.Player causer, org.bukkit.Location loc, double radius)
causer
- The player causing this instance to be removedpublic void animate()
public void breakSuffocateLocal(org.bukkit.entity.Entity entity)
public void remove()
remove
in interface Ability
remove
in class CoreAbility
CoreAbility.isRemoved()
public java.lang.String getName()
Ability
BendingPlayer.addCooldown(Ability)
, therefore if two abilities
have the same name they will also share cooldowns. If two classes share
the same name (SurgeWall/SurgeWave) but need to have independent
cooldowns, then BendingPlayer.addCooldown(String, long)
should be
called explicitly.public org.bukkit.Location getLocation()
Ability
TorrentWave
could not be fully specified by a single location,
while it is possible for an EarthBlast
. The location is useful
for making sure that the player is currently in the same world as the
ability.BendingPlayer.canBend(CoreAbility)
public long getCooldown()
public boolean isSneakAbility()
Ability
PlayerToggleSneakEvent
as a
controlling mechanism. Currently WaterPassive
will not work while
the player has a sneak ability bound.public boolean isHarmlessAbility()
Ability
public boolean isStarted()
isStarted
in class CoreAbility
public void setStarted(boolean started)
public boolean isRequireConstantAim()
public void setRequireConstantAim(boolean requireConstantAim)
public boolean isCanSuffocateUndead()
public void setCanSuffocateUndead(boolean canSuffocateUndead)
public int getParticleCount()
public void setParticleCount(int particleCount)
public long getChargeTime()
public void setChargeTime(long chargeTime)
public double getRange()
public void setRange(double range)
public double getRadius()
public void setRadius(double radius)
public double getDamage()
public void setDamage(double damage)
public double getDamageDelay()
public void setDamageDelay(double damageDelay)
public double getDamageRepeat()
public void setDamageRepeat(double damageRepeat)
public double getSlow()
public void setSlow(double slow)
public double getSlowRepeat()
public void setSlowRepeat(double slowRepeat)
public double getSlowDelay()
public void setSlowDelay(double slowDelay)
public double getConstantAimRadius()
public void setConstantAimRadius(double constantAimRadius)
public double getBlind()
public void setBlind(double blind)
public double getBlindDelay()
public void setBlindDelay(double blindDelay)
public double getBlindRepeat()
public void setBlindRepeat(double blindRepeat)
public double getAnimationSpeed()
public void setAnimationSpeed(double animationSpeed)
public java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> getTasks()
public java.util.ArrayList<org.bukkit.entity.LivingEntity> getTargets()
public void setCooldown(long cooldown)