public class AirFlight extends FlightAbility
| Constructor and Description |
|---|
AirFlight(org.bukkit.entity.Player player) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHit(org.bukkit.entity.Player player) |
static void |
cleanup() |
long |
getCooldown() |
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.
|
static boolean |
isFlying(org.bukkit.entity.Player player) |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
static boolean |
isHovering(org.bukkit.entity.Player player) |
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. |
static void |
remove(org.bukkit.entity.Player player) |
static void |
setHovering(org.bukkit.entity.Player player,
boolean bool) |
getElement, getParentAbilitybreakBreathbendingHold, getAirbendingParticles, isExplosiveAbility, isIgniteAbility, isWithinAirShield, playAirbendingParticles, playAirbendingParticles, playAirbendingSound, removeAirSpouts, removeAirSpoutsgetTransparentMaterial, 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, isWatergetAbilities, getAbilities, getAbilities, getAbilitiesByElement, getAbility, getAbility, getBendingPlayer, getConfig, getDebugString, getDescription, getId, getLanguageConfig, getPlayer, getPlayers, getStartTime, hasAbility, isEnabled, isHiddenAbility, isRemoved, isStarted, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, startpublic static void addHit(org.bukkit.entity.Player player)
public static boolean isFlying(org.bukkit.entity.Player player)
public static boolean isHovering(org.bukkit.entity.Player player)
public static void remove(org.bukkit.entity.Player player)
public static void cleanup()
public static void setHovering(org.bukkit.entity.Player player,
boolean bool)
public void progress()
Abilitypublic void remove()
CoreAbilityAbility.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 Abilityremove in class CoreAbilityCoreAbility.isRemoved()public java.lang.String getName()
AbilityBendingPlayer.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()
AbilityTorrentWave 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()
AbilityPlayerToggleSneakEvent as a
controlling mechanism. Currently WaterPassive will not work while
the player has a sneak ability bound.public boolean isHarmlessAbility()
Ability