public class SurgeWall extends WaterAbility
Constructor and Description |
---|
SurgeWall(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static void |
form(org.bukkit.entity.Player player) |
static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.block.Block> |
getAffectedBlocks() |
long |
getCooldown() |
org.bukkit.Location |
getFirstDestination() |
org.bukkit.util.Vector |
getFirstDirection() |
long |
getInterval() |
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 |
getRadius() |
double |
getRange() |
org.bukkit.block.Block |
getSourceBlock() |
org.bukkit.Location |
getTargetDestination() |
org.bukkit.util.Vector |
getTargetDirection() |
long |
getTime() |
static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.entity.Player> |
getWallBlocks() |
boolean |
isForming() |
boolean |
isFrozen() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isProgressing() |
boolean |
isSettingUp() |
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 |
setCooldown(long cooldown) |
void |
setFirstDestination(org.bukkit.Location firstDestination) |
void |
setFirstDirection(org.bukkit.util.Vector firstDirection) |
void |
setForming(boolean forming) |
void |
setFrozen(boolean frozen) |
void |
setInterval(long interval) |
void |
setLocation(org.bukkit.Location location) |
void |
setProgressing(boolean progressing) |
void |
setRadius(double radius) |
void |
setRange(double range) |
void |
setSettingUp(boolean settingUp) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setTargetDestination(org.bukkit.Location targetDestination) |
void |
setTargetDirection(org.bukkit.util.Vector targetDirection) |
void |
setTime(long time) |
static void |
thaw(org.bukkit.block.Block block) |
static boolean |
wasBrokenFor(org.bukkit.entity.Player player,
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 boolean prepare()
public void moveWater()
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 static void form(org.bukkit.entity.Player player)
public static void removeAllCleanup()
public static void thaw(org.bukkit.block.Block block)
public static boolean wasBrokenFor(org.bukkit.entity.Player player, 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 isProgressing()
public void setProgressing(boolean progressing)
public boolean isSettingUp()
public void setSettingUp(boolean settingUp)
public boolean isForming()
public void setForming(boolean forming)
public boolean isFrozen()
public void setFrozen(boolean frozen)
public long getTime()
public void setTime(long time)
public long getInterval()
public void setInterval(long interval)
public double getRadius()
public void setRadius(double radius)
public double getRange()
public void setRange(double range)
public org.bukkit.block.Block getSourceBlock()
public void setSourceBlock(org.bukkit.block.Block sourceBlock)
public org.bukkit.Location getFirstDestination()
public void setFirstDestination(org.bukkit.Location firstDestination)
public org.bukkit.Location getTargetDestination()
public void setTargetDestination(org.bukkit.Location targetDestination)
public org.bukkit.util.Vector getFirstDirection()
public void setFirstDirection(org.bukkit.util.Vector firstDirection)
public org.bukkit.util.Vector getTargetDirection()
public void setTargetDirection(org.bukkit.util.Vector targetDirection)
public static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.block.Block> getAffectedBlocks()
public static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,org.bukkit.entity.Player> getWallBlocks()
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)