public class AirCombo extends AirAbility implements ComboAbility
Modifier and Type | Class and Description |
---|---|
static class |
AirCombo.AbilityState |
class |
AirCombo.AirStream |
class |
AirCombo.AirSweep |
class |
AirCombo.Twister |
Constructor and Description |
---|
AirCombo(org.bukkit.entity.Player player,
java.lang.String ability) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createNewComboInstance(org.bukkit.entity.Player player)
Creates a new instance of the combo from a specific player.
|
java.lang.String |
getAbilityName() |
java.util.ArrayList<org.bukkit.entity.Entity> |
getAffectedEntities() |
double |
getAirStreamEntityCarryDuration() |
double |
getAirStreamMaxEntityHeight() |
java.util.ArrayList<ComboManager.AbilityInformation> |
getCombination()
Returns the list of abilities which constitute the combo.
|
long |
getCooldown() |
org.bukkit.Location |
getCurrentLoc() |
double |
getDamage() |
org.bukkit.Location |
getDestination() |
org.bukkit.util.Vector |
getDirection() |
java.util.ArrayList<Flight> |
getFlights() |
java.lang.String |
getInstructions()
Accessor Method to get the instructions for using this combo.
|
double |
getKnockback() |
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.
|
org.bukkit.Location |
getOrigin() |
int |
getProgressCounter() |
double |
getRange() |
double |
getSpeed() |
AirCombo.AbilityState |
getState() |
java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> |
getTasks() |
long |
getTime() |
double |
getTwisterDegreeParticles() |
double |
getTwisterHeight() |
double |
getTwisterHeightParticles() |
double |
getTwisterRadius() |
double |
getTwisterRemoveDelay() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHiddenAbility()
A hidden ability is an ability that should not be shown by commands such
as /bending display and /bending help.
|
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
manageAirVectors() |
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 boolean |
removeAroundPoint(org.bukkit.entity.Player player,
java.lang.String ability,
org.bukkit.Location loc,
double radius) |
void |
setAbilityName(java.lang.String abilityName) |
void |
setAirStreamEntityCarryDuration(double airStreamEntityCarryDuration) |
void |
setAirStreamMaxEntityHeight(double airStreamMaxEntityHeight) |
void |
setCooldown(long cooldown) |
void |
setCurrentLoc(org.bukkit.Location currentLoc) |
void |
setDamage(double damage) |
void |
setDestination(org.bukkit.Location destination) |
void |
setDirection(org.bukkit.util.Vector direction) |
void |
setKnockback(double knockback) |
void |
setOrigin(org.bukkit.Location origin) |
void |
setProgressCounter(int progressCounter) |
void |
setRange(double range) |
void |
setSpeed(double speed) |
void |
setState(AirCombo.AbilityState state) |
void |
setTime(long time) |
void |
setTwisterDegreeParticles(double twisterDegreeParticles) |
void |
setTwisterHeight(double twisterHeight) |
void |
setTwisterHeightParticles(double twisterHeightParticles) |
void |
setTwisterRadius(double twisterRadius) |
void |
setTwisterRemoveDelay(double twisterRemoveDelay) |
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, isRemoved, isStarted, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, start
public AirCombo(org.bukkit.entity.Player player, java.lang.String ability)
public void progress()
Ability
public void manageAirVectors()
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 static boolean removeAroundPoint(org.bukkit.entity.Player player, java.lang.String ability, org.bukkit.Location loc, double radius)
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.getLocation
in interface Ability
BendingPlayer.canBend(CoreAbility)
public long getCooldown()
getCooldown
in interface Ability
public boolean isHiddenAbility()
Ability
isHiddenAbility
in interface Ability
isHiddenAbility
in class CoreAbility
public boolean isSneakAbility()
Ability
PlayerToggleSneakEvent
as a
controlling mechanism. Currently WaterPassive
will not work while
the player has a sneak ability bound.isSneakAbility
in interface Ability
public boolean isHarmlessAbility()
Ability
isHarmlessAbility
in interface Ability
public java.lang.String getInstructions()
ComboAbility
getInstructions
in interface ComboAbility
public java.lang.Object createNewComboInstance(org.bukkit.entity.Player player)
ComboAbility
createNewComboInstance
in interface ComboAbility
player
- The player using the combo.public java.util.ArrayList<ComboManager.AbilityInformation> getCombination()
ComboAbility
getCombination
in interface ComboAbility
public java.lang.String getAbilityName()
public void setAbilityName(java.lang.String abilityName)
public org.bukkit.Location getOrigin()
public void setOrigin(org.bukkit.Location origin)
public org.bukkit.Location getCurrentLoc()
public void setCurrentLoc(org.bukkit.Location currentLoc)
public org.bukkit.Location getDestination()
public void setDestination(org.bukkit.Location destination)
public org.bukkit.util.Vector getDirection()
public void setDirection(org.bukkit.util.Vector direction)
public AirCombo.AbilityState getState()
public void setState(AirCombo.AbilityState state)
public int getProgressCounter()
public void setProgressCounter(int progressCounter)
public long getTime()
public void setTime(long time)
public double getDamage()
public void setDamage(double damage)
public double getSpeed()
public void setSpeed(double speed)
public double getRange()
public void setRange(double range)
public double getKnockback()
public void setKnockback(double knockback)
public double getAirStreamMaxEntityHeight()
public void setAirStreamMaxEntityHeight(double airStreamMaxEntityHeight)
public double getAirStreamEntityCarryDuration()
public void setAirStreamEntityCarryDuration(double airStreamEntityCarryDuration)
public double getTwisterHeight()
public void setTwisterHeight(double twisterHeight)
public double getTwisterRadius()
public void setTwisterRadius(double twisterRadius)
public double getTwisterDegreeParticles()
public void setTwisterDegreeParticles(double twisterDegreeParticles)
public double getTwisterHeightParticles()
public void setTwisterHeightParticles(double twisterHeightParticles)
public double getTwisterRemoveDelay()
public void setTwisterRemoveDelay(double twisterRemoveDelay)
public java.util.ArrayList<org.bukkit.entity.Entity> getAffectedEntities()
public java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> getTasks()
public java.util.ArrayList<Flight> getFlights()
public void setCooldown(long cooldown)