public class AvatarState extends AvatarAbility
Constructor and Description |
---|
AvatarState(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
long |
getCooldown() |
long |
getDuration() |
double |
getFactor() |
int |
getFireResistancePower() |
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 |
getRegenPower() |
int |
getResistancePower() |
int |
getSpeedPower() |
static java.util.HashMap<java.lang.String,java.lang.Long> |
getStartTimes() |
static double |
getValue(double value) |
static double |
getValue(double value,
org.bukkit.entity.Player player) |
static int |
getValue(int value) |
boolean |
isFireResistanceEnabled() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isRegenEnabled() |
boolean |
isResistanceEnabled() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
boolean |
isSpeedEnabled() |
void |
progress()
Causes the ability to be updated.
|
void |
setCooldown(long cooldown) |
void |
setDuration(long duration) |
void |
setFactor(double factor) |
void |
setFireResistanceEnabled(boolean fireResistanceEnabled) |
void |
setFireResistancePower(int fireResistancePower) |
void |
setRegenEnabled(boolean regenEnabled) |
void |
setRegenPower(int regenPower) |
void |
setResistanceEnabled(boolean resistanceEnabled) |
void |
setResistancePower(int resistancePower) |
void |
setSpeedEnabled(boolean speedEnabled) |
void |
setSpeedPower(int speedPower) |
getElement, isExplosiveAbility, isIgniteAbility, playAvatarSound, requireAvatar
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
public void progress()
Ability
public static double getValue(double value)
public static int getValue(int value)
public static double getValue(double value, org.bukkit.entity.Player player)
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 isRegenEnabled()
public void setRegenEnabled(boolean regenEnabled)
public boolean isSpeedEnabled()
public void setSpeedEnabled(boolean speedEnabled)
public boolean isResistanceEnabled()
public void setResistanceEnabled(boolean resistanceEnabled)
public boolean isFireResistanceEnabled()
public void setFireResistanceEnabled(boolean fireResistanceEnabled)
public int getRegenPower()
public void setRegenPower(int regenPower)
public int getSpeedPower()
public void setSpeedPower(int speedPower)
public int getResistancePower()
public void setResistancePower(int resistancePower)
public int getFireResistancePower()
public void setFireResistancePower(int fireResistancePower)
public long getDuration()
public void setDuration(long duration)
public double getFactor()
public void setFactor(double factor)
public static java.util.HashMap<java.lang.String,java.lang.Long> getStartTimes()
public void setCooldown(long cooldown)