public abstract class AirAbility extends ElementalAbility
Constructor and Description |
---|
AirAbility(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static void |
breakBreathbendingHold(org.bukkit.entity.Entity entity)
Breaks a breathbendng hold on an entity or one a player is inflicting on
an entity.
|
static ParticleEffect |
getAirbendingParticles()
Gets the Air Particles from the config.
|
Element |
getElement()
Specifies the Element used to represent this type of ability, favoring
SubElements over Elements.
|
boolean |
isExplosiveAbility()
Determines if this ability can cause explosions.
|
boolean |
isIgniteAbility()
Determines if this ability can ignite blocks.
|
static boolean |
isWithinAirShield(org.bukkit.Location loc)
Checks whether a location is within an AirShield.
|
static void |
playAirbendingParticles(org.bukkit.Location loc,
int amount)
Plays an integer amount of air particles in a location.
|
static void |
playAirbendingParticles(org.bukkit.Location loc,
int amount,
float xOffset,
float yOffset,
float zOffset)
Plays an integer amount of air particles in a location with a given
xOffset, yOffset, and zOffset.
|
static void |
playAirbendingSound(org.bukkit.Location loc)
Plays the Airbending Sound at a location if enabled in the config.
|
static void |
removeAirSpouts(org.bukkit.Location loc,
double radius,
org.bukkit.entity.Player source)
Removes all air spouts in a location within a certain radius.
|
static void |
removeAirSpouts(org.bukkit.Location loc,
org.bukkit.entity.Player source)
Removes all air spouts in a location with a radius of 1.5.
|
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, remove, removeAll, start
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCooldown, getLocation, getName, isHarmlessAbility, isSneakAbility, progress
public boolean isIgniteAbility()
Ability
public boolean isExplosiveAbility()
Ability
FireBlastCharged
public Element getElement()
Ability
Element.LIGHTNING
instead of Element.FIRE
.Element.SubElement.getParentElement()
public static void breakBreathbendingHold(org.bukkit.entity.Entity entity)
entity
- The entity to be acted uponpublic static ParticleEffect getAirbendingParticles()
public static boolean isWithinAirShield(org.bukkit.Location loc)
loc
- The location to checkpublic static void playAirbendingParticles(org.bukkit.Location loc, int amount)
loc
- The location to useamount
- The amount of particlespublic static void playAirbendingParticles(org.bukkit.Location loc, int amount, float xOffset, float yOffset, float zOffset)
loc
- The location to useamount
- The amount of particlesxOffset
- The xOffset to useyOffset
- The yOffset to usezOffset
- The zOffset to usepublic static void playAirbendingSound(org.bukkit.Location loc)
loc
- The location to play the sound atpublic static void removeAirSpouts(org.bukkit.Location loc, double radius, org.bukkit.entity.Player source)
loc
- The location to useradius
- The radius around the location to remove spouts insource
- The player causing the removalpublic static void removeAirSpouts(org.bukkit.Location loc, org.bukkit.entity.Player source)
loc
- The location to usesource
- The player causing the removal