public class WaterArmsWhip extends WaterAbility
Modifier and Type | Class and Description |
---|---|
static class |
WaterArmsWhip.Whip
Whip Enum value for deciding what ability should be executed.
|
Constructor and Description |
---|
WaterArmsWhip(org.bukkit.entity.Player player,
WaterArmsWhip.Whip ability) |
Modifier and Type | Method and Description |
---|---|
static void |
checkValidEntities() |
WaterArmsWhip.Whip |
getAbility() |
int |
getActiveLength() |
WaterArms.Arm |
getArm() |
long |
getCooldown() |
org.bukkit.Location |
getEnd() |
static java.util.HashMap<org.bukkit.entity.LivingEntity,WaterArmsWhip> |
getGrabbedEntities() |
org.bukkit.entity.LivingEntity |
getGrabbedEntity() |
long |
getHoldTime() |
int |
getInitLength() |
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.
|
double |
getPlayerHealth() |
double |
getPullMultiplier() |
double |
getPunchDamage() |
int |
getPunchLength() |
int |
getPunchLengthFullMoon() |
int |
getPunchLengthNight() |
long |
getTime() |
long |
getUsageCooldown() |
WaterArms |
getWaterArms() |
int |
getWhipLength() |
int |
getWhipLengthFullMoon() |
int |
getWhipLengthNight() |
int |
getWhipLengthWeak() |
int |
getWhipSpeed() |
boolean |
isGrabbed() |
boolean |
isGrappled() |
boolean |
isGrappleRespectRegions() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHasDamaged() |
boolean |
isReverting() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
boolean |
isUsageCooldownEnabled() |
void |
progress()
Causes the ability to be updated.
|
static void |
progressAllCleanup() |
void |
remove()
Causes this CoreAbility instance to be removed, and
Ability.progress()
will no longer be called every tick. |
static void |
removeAllCleanup() |
void |
setAbility(WaterArmsWhip.Whip ability) |
void |
setActiveLength(int activeLength) |
void |
setArm(WaterArms.Arm arm) |
void |
setEnd(org.bukkit.Location end) |
void |
setGrabbed(boolean grabbed) |
void |
setGrabbedEntity(org.bukkit.entity.LivingEntity grabbedEntity) |
void |
setGrappled(boolean grappled) |
void |
setGrappleRespectRegions(boolean grappleRespectRegions) |
void |
setHasDamaged(boolean hasDamaged) |
void |
setHoldTime(long holdTime) |
void |
setInitLength(int initLength) |
void |
setPlayerHealth(double playerHealth) |
void |
setPullMultiplier(double pullMultiplier) |
void |
setPunchDamage(double punchDamage) |
void |
setPunchLength(int punchLength) |
void |
setPunchLengthFullMoon(int punchLengthFullMoon) |
void |
setPunchLengthNight(int punchLengthNight) |
void |
setReverting(boolean reverting) |
void |
setTime(long time) |
void |
setUsageCooldown(long usageCooldown) |
void |
setUsageCooldownEnabled(boolean usageCooldownEnabled) |
void |
setWaterArms(WaterArms waterArms) |
void |
setWhipLength(int whipLength) |
void |
setWhipLengthFullMoon(int whipLengthFullMoon) |
void |
setWhipLengthNight(int whipLengthNight) |
void |
setWhipLengthWeak(int whipLengthWeak) |
void |
setWhipSpeed(int whipSpeed) |
canAutoSource, canDynamicSource, getElement, getIceSourceBlock, getIceSourceBlock, getNightFactor, getNightFactor, getNightFactor, getNightFactor, getPlantSourceBlock, getPlantSourceBlock, getPlantSourceBlock, getWaterSourceBlock, isAdjacentToFrozenBlock, isExplosiveAbility, isIcebendable, isIcebendable, isIcebendable, isIcebendable, isIgniteAbility, isLeaves, isLeaves, isPlantbendable, isPlantbendable, isPlantbendable, isPlantbendable, isSnow, isSnow, isWaterbendable, isWaterbendable, isWaterbendable, isWaterbendable, playFocusWaterEffect, playIcebendingSound, playPlantbendingSound, playWaterbendingSound, removeWaterSpouts, removeWaterSpouts, stopBending
getTransparentMaterial, getTransparentMaterialSet, isDay, isEarth, isEarth, isFullMoon, isIce, isIce, isLava, isLava, isLunarEclipse, isMeltable, isMetal, isMetal, isMetalBlock, isNegativeEffect, isNeutralEffect, isNight, isPlant, isPlant, isPositiveEffect, isSand, isSand, 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 WaterArmsWhip(org.bukkit.entity.Player player, WaterArmsWhip.Whip ability)
public void progress()
Ability
public static void checkValidEntities()
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 void progressAllCleanup()
public static void removeAllCleanup()
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 isReverting()
public void setReverting(boolean reverting)
public boolean isHasDamaged()
public void setHasDamaged(boolean hasDamaged)
public boolean isGrappled()
public void setGrappled(boolean grappled)
public boolean isGrabbed()
public void setGrabbed(boolean grabbed)
public boolean isGrappleRespectRegions()
public void setGrappleRespectRegions(boolean grappleRespectRegions)
public boolean isUsageCooldownEnabled()
public void setUsageCooldownEnabled(boolean usageCooldownEnabled)
public int getWhipLength()
public void setWhipLength(int whipLength)
public int getWhipLengthWeak()
public void setWhipLengthWeak(int whipLengthWeak)
public int getWhipLengthNight()
public void setWhipLengthNight(int whipLengthNight)
public int getWhipLengthFullMoon()
public void setWhipLengthFullMoon(int whipLengthFullMoon)
public int getInitLength()
public void setInitLength(int initLength)
public int getPunchLength()
public void setPunchLength(int punchLength)
public int getPunchLengthNight()
public void setPunchLengthNight(int punchLengthNight)
public int getPunchLengthFullMoon()
public void setPunchLengthFullMoon(int punchLengthFullMoon)
public int getActiveLength()
public void setActiveLength(int activeLength)
public int getWhipSpeed()
public void setWhipSpeed(int whipSpeed)
public long getHoldTime()
public void setHoldTime(long holdTime)
public long getUsageCooldown()
public void setUsageCooldown(long usageCooldown)
public long getTime()
public void setTime(long time)
public double getPullMultiplier()
public void setPullMultiplier(double pullMultiplier)
public double getPunchDamage()
public void setPunchDamage(double punchDamage)
public double getPlayerHealth()
public void setPlayerHealth(double playerHealth)
public WaterArms.Arm getArm()
public void setArm(WaterArms.Arm arm)
public WaterArmsWhip.Whip getAbility()
public void setAbility(WaterArmsWhip.Whip ability)
public org.bukkit.entity.LivingEntity getGrabbedEntity()
public void setGrabbedEntity(org.bukkit.entity.LivingEntity grabbedEntity)
public org.bukkit.Location getEnd()
public void setEnd(org.bukkit.Location end)
public WaterArms getWaterArms()
public void setWaterArms(WaterArms waterArms)
public static java.util.HashMap<org.bukkit.entity.LivingEntity,WaterArmsWhip> getGrabbedEntities()