public class Tornado extends AirAbility
Constructor and Description |
---|
Tornado(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getAngles() |
long |
getCooldown() |
double |
getCurrentHeight() |
double |
getCurrentRadius() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
double |
getMaxHeight() |
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
double |
getNpcPushFactor() |
int |
getNumberOfStreams() |
org.bukkit.Location |
getOrigin() |
int |
getParticleCount() |
double |
getPlayerPushFactor() |
double |
getRadius() |
double |
getRange() |
double |
getSpeed() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
progress()
Causes the ability to be updated.
|
void |
remove()
Causes this CoreAbility instance to be removed, and
Ability.progress()
will no longer be called every tick. |
void |
setCurrentHeight(double currentHeight) |
void |
setCurrentRadius(double currentRadius) |
void |
setMaxHeight(double maxHeight) |
void |
setNpcPushFactor(double npcPushFactor) |
void |
setNumberOfStreams(int numberOfStreams) |
void |
setOrigin(org.bukkit.Location origin) |
void |
setParticleCount(int particleCount) |
void |
setPlayerPushFactor(double playerPushFactor) |
void |
setRadius(double radius) |
void |
setRange(double range) |
void |
setSpeed(double speed) |
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, isStarted, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, start
public void progress()
Ability
public void remove()
CoreAbility
Ability.progress()
will no longer be called every tick. If this method is overridden then
the new method must call super.remove().
Causes the ability to be removed from existence.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 org.bukkit.Location getOrigin()
public void setOrigin(org.bukkit.Location origin)
public int getNumberOfStreams()
public void setNumberOfStreams(int numberOfStreams)
public int getParticleCount()
public void setParticleCount(int particleCount)
public double getSpeed()
public void setSpeed(double speed)
public double getMaxHeight()
public void setMaxHeight(double maxHeight)
public double getPlayerPushFactor()
public void setPlayerPushFactor(double playerPushFactor)
public double getRadius()
public void setRadius(double radius)
public double getRange()
public void setRange(double range)
public double getNpcPushFactor()
public void setNpcPushFactor(double npcPushFactor)
public double getCurrentHeight()
public void setCurrentHeight(double currentHeight)
public double getCurrentRadius()
public void setCurrentRadius(double currentRadius)
public java.util.Map<java.lang.Integer,java.lang.Integer> getAngles()