public class WaterArmsSpear extends WaterAbility
Constructor and Description |
---|
WaterArmsSpear(org.bukkit.entity.Player player,
boolean freeze) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canThaw(org.bukkit.block.Block block) |
WaterArms.Arm |
getArm() |
long |
getCooldown() |
int |
getDistanceTravelled() |
static java.util.Map<org.bukkit.block.Block,java.lang.Long> |
getIceBlocks() |
org.bukkit.Location |
getInitLocation() |
int |
getLayer() |
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 |
getSpearDamage() |
long |
getSpearDuration() |
long |
getSpearDurationFullMoon() |
long |
getSpearDurationNight() |
int |
getSpearLength() |
java.util.List<org.bukkit.Location> |
getSpearLocations() |
int |
getSpearRange() |
int |
getSpearRangeFullMoon() |
int |
getSpearRangeNight() |
int |
getSpearSphere() |
int |
getSpearSphereFullMoon() |
int |
getSpearSphereNight() |
long |
getUsageCooldown() |
WaterArms |
getWaterArms() |
boolean |
isCanFreeze() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHitEntity() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
boolean |
isSpearDamageEnabled() |
boolean |
isUsageCooldownEnabled() |
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. |
void |
setArm(WaterArms.Arm arm) |
void |
setCanFreeze(boolean canFreeze) |
void |
setDistanceTravelled(int distanceTravelled) |
void |
setHitEntity(boolean hitEntity) |
void |
setInitLocation(org.bukkit.Location initLocation) |
void |
setLayer(int layer) |
void |
setLocation(org.bukkit.Location location) |
void |
setSpearDamage(double spearDamage) |
void |
setSpearDamageEnabled(boolean spearDamageEnabled) |
void |
setSpearDuration(long spearDuration) |
void |
setSpearDurationFullMoon(long spearDurationFullMoon) |
void |
setSpearDurationNight(long spearDurationNight) |
void |
setSpearLength(int spearLength) |
void |
setSpearRange(int spearRange) |
void |
setSpearRangeFullMoon(int spearRangeFullMoon) |
void |
setSpearRangeNight(int spearRangeNight) |
void |
setSpearSphere(int spearSphere) |
void |
setSpearSphereFullMoon(int spearSphereFullMoon) |
void |
setSpearSphereNight(int spearSphereNight) |
void |
setUsageCooldown(long usageCooldown) |
void |
setUsageCooldownEnabled(boolean usageCooldownEnabled) |
void |
setWaterArms(WaterArms waterArms) |
static void |
thaw(org.bukkit.block.Block block) |
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 WaterArmsSpear(org.bukkit.entity.Player player, boolean freeze)
public void progress()
Ability
public static boolean canThaw(org.bukkit.block.Block block)
public static void thaw(org.bukkit.block.Block block)
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 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 isHitEntity()
public void setHitEntity(boolean hitEntity)
public boolean isCanFreeze()
public void setCanFreeze(boolean canFreeze)
public boolean isUsageCooldownEnabled()
public void setUsageCooldownEnabled(boolean usageCooldownEnabled)
public boolean isSpearDamageEnabled()
public void setSpearDamageEnabled(boolean spearDamageEnabled)
public int getSpearLength()
public void setSpearLength(int spearLength)
public int getSpearRange()
public void setSpearRange(int spearRange)
public int getSpearRangeNight()
public void setSpearRangeNight(int spearRangeNight)
public int getSpearRangeFullMoon()
public void setSpearRangeFullMoon(int spearRangeFullMoon)
public int getSpearSphere()
public void setSpearSphere(int spearSphere)
public int getSpearSphereNight()
public void setSpearSphereNight(int spearSphereNight)
public int getSpearSphereFullMoon()
public void setSpearSphereFullMoon(int spearSphereFullMoon)
public int getDistanceTravelled()
public void setDistanceTravelled(int distanceTravelled)
public int getLayer()
public void setLayer(int layer)
public long getSpearDuration()
public void setSpearDuration(long spearDuration)
public long getSpearDurationNight()
public void setSpearDurationNight(long spearDurationNight)
public long getSpearDurationFullMoon()
public void setSpearDurationFullMoon(long spearDurationFullMoon)
public long getUsageCooldown()
public void setUsageCooldown(long usageCooldown)
public double getSpearDamage()
public void setSpearDamage(double spearDamage)
public WaterArms.Arm getArm()
public void setArm(WaterArms.Arm arm)
public org.bukkit.Location getInitLocation()
public void setInitLocation(org.bukkit.Location initLocation)
public WaterArms getWaterArms()
public void setWaterArms(WaterArms waterArms)
public java.util.List<org.bukkit.Location> getSpearLocations()
public void setLocation(org.bukkit.Location location)
public static java.util.Map<org.bukkit.block.Block,java.lang.Long> getIceBlocks()