public class SurgeWave extends WaterAbility
Constructor and Description |
---|
SurgeWave(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canThaw(org.bukkit.block.Block block) |
long |
getCooldown() |
double |
getCurrentRadius() |
java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.Material> |
getFrozenBlocks() |
org.bukkit.Location |
getFrozenLocation() |
long |
getInterval() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
double |
getMaxFreezeRadius() |
double |
getMaxRadius() |
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
double |
getPushFactor() |
double |
getRange() |
org.bukkit.block.Block |
getSourceBlock() |
org.bukkit.Location |
getTargetDestination() |
org.bukkit.util.Vector |
getTargetDirection() |
long |
getTime() |
double |
getVerticalFactor() |
java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.block.Block> |
getWaveBlocks() |
boolean |
isActivateFreeze() |
static boolean |
isBlockWave(org.bukkit.block.Block block) |
boolean |
isCanHitSelf() |
boolean |
isFreezing() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isProgressing() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
moveWater() |
boolean |
prepare() |
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 void |
removeAllCleanup() |
void |
returnWater() |
void |
setActivateFreeze(boolean activateFreeze) |
void |
setCanHitSelf(boolean canHitSelf) |
void |
setCooldown(long cooldown) |
void |
setCurrentRadius(double currentRadius) |
void |
setFreezing(boolean freezing) |
void |
setFrozenLocation(org.bukkit.Location frozenLocation) |
void |
setInterval(long interval) |
void |
setLocation(org.bukkit.Location location) |
void |
setMaxFreezeRadius(double maxFreezeRadius) |
void |
setMaxRadius(double maxRadius) |
void |
setProgressing(boolean progressing) |
void |
setPushFactor(double pushFactor) |
void |
setRange(double range) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setTargetDestination(org.bukkit.Location targetDestination) |
void |
setTargetDirection(org.bukkit.util.Vector targetDirection) |
void |
setTime(long time) |
void |
setVerticalFactor(double verticalFactor) |
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 void moveWater()
public boolean prepare()
public void progress()
Ability
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 void returnWater()
public static boolean canThaw(org.bukkit.block.Block block)
public static void removeAllCleanup()
public static boolean isBlockWave(org.bukkit.block.Block block)
public static void thaw(org.bukkit.block.Block block)
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 isFreezing()
public void setFreezing(boolean freezing)
public boolean isActivateFreeze()
public void setActivateFreeze(boolean activateFreeze)
public boolean isProgressing()
public void setProgressing(boolean progressing)
public boolean isCanHitSelf()
public void setCanHitSelf(boolean canHitSelf)
public long getTime()
public void setTime(long time)
public long getInterval()
public void setInterval(long interval)
public double getCurrentRadius()
public void setCurrentRadius(double currentRadius)
public double getMaxRadius()
public void setMaxRadius(double maxRadius)
public double getRange()
public void setRange(double range)
public double getPushFactor()
public void setPushFactor(double pushFactor)
public double getVerticalFactor()
public void setVerticalFactor(double verticalFactor)
public double getMaxFreezeRadius()
public void setMaxFreezeRadius(double maxFreezeRadius)
public org.bukkit.block.Block getSourceBlock()
public void setSourceBlock(org.bukkit.block.Block sourceBlock)
public org.bukkit.Location getTargetDestination()
public void setTargetDestination(org.bukkit.Location targetDestination)
public org.bukkit.Location getFrozenLocation()
public void setFrozenLocation(org.bukkit.Location frozenLocation)
public org.bukkit.util.Vector getTargetDirection()
public void setTargetDirection(org.bukkit.util.Vector targetDirection)
public java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.block.Block> getWaveBlocks()
public java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.Material> getFrozenBlocks()
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)