public class WaterManipulation extends WaterAbility
Constructor and Description |
---|
WaterManipulation(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static boolean |
annihilateBlasts(org.bukkit.Location location,
double radius,
org.bukkit.entity.Player player) |
static boolean |
canBubbleWater(org.bukkit.block.Block block) |
static boolean |
canFlowFromTo(org.bukkit.block.Block from,
org.bukkit.block.Block to) |
static boolean |
canPhysicsChange(org.bukkit.block.Block block) |
static java.util.Map<org.bukkit.block.Block,org.bukkit.block.Block> |
getAffectedBlocks() |
double |
getCollisionRadius() |
long |
getCooldown() |
double |
getDamage() |
double |
getDeflectRange() |
int |
getDispelRange() |
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 |
getPushFactor() |
double |
getRange() |
double |
getSelectRange() |
org.bukkit.block.Block |
getSourceBlock() |
double |
getSpeed() |
org.bukkit.Location |
getTargetDestination() |
org.bukkit.util.Vector |
getTargetDirection() |
long |
getTime() |
TempBlock |
getTrail() |
TempBlock |
getTrail2() |
java.util.HashSet<java.lang.Byte> |
getWaterTypes() |
boolean |
isDisplacing() |
boolean |
isFalling() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isPrepared() |
boolean |
isProgressing() |
boolean |
isSettingUp() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
moveWater() |
static void |
moveWater(org.bukkit.entity.Player player) |
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 |
removeAroundPoint(org.bukkit.Location location,
double radius) |
void |
setCollisionRadius(double collisionRadius) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setDeflectRange(double deflectRange) |
void |
setDispelRange(int dispelRange) |
void |
setDisplacing(boolean displacing) |
void |
setFalling(boolean falling) |
void |
setFirstDestination(org.bukkit.Location firstDestination) |
void |
setFirstDirection(org.bukkit.util.Vector firstDirection) |
void |
setInterval(long interval) |
void |
setLocation(org.bukkit.Location location) |
void |
setPrepared(boolean prepared) |
void |
setProgressing(boolean progressing) |
void |
setPushFactor(double pushFactor) |
void |
setRange(double range) |
void |
setSelectRange(double selectRange) |
void |
setSettingUp(boolean settingUp) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setSpeed(double speed) |
void |
setTargetDestination(org.bukkit.Location targetDestination) |
void |
setTargetDirection(org.bukkit.util.Vector targetDirection) |
void |
setTime(long time) |
void |
setTrail(TempBlock trail) |
void |
setTrail2(TempBlock trail2) |
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 static boolean annihilateBlasts(org.bukkit.Location location, double radius, org.bukkit.entity.Player player)
public static boolean canBubbleWater(org.bukkit.block.Block block)
public static boolean canFlowFromTo(org.bukkit.block.Block from, org.bukkit.block.Block to)
public static boolean canPhysicsChange(org.bukkit.block.Block block)
public static void moveWater(org.bukkit.entity.Player player)
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 removeAroundPoint(org.bukkit.Location location, double radius)
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 isFalling()
public void setFalling(boolean falling)
public boolean isSettingUp()
public void setSettingUp(boolean settingUp)
public boolean isDisplacing()
public void setDisplacing(boolean displacing)
public boolean isPrepared()
public void setPrepared(boolean prepared)
public int getDispelRange()
public void setDispelRange(int dispelRange)
public long getTime()
public void setTime(long time)
public long getInterval()
public void setInterval(long interval)
public double getRange()
public void setRange(double range)
public double getSelectRange()
public void setSelectRange(double selectRange)
public double getPushFactor()
public void setPushFactor(double pushFactor)
public double getDamage()
public void setDamage(double damage)
public double getSpeed()
public void setSpeed(double speed)
public double getDeflectRange()
public void setDeflectRange(double deflectRange)
public org.bukkit.block.Block getSourceBlock()
public void setSourceBlock(org.bukkit.block.Block sourceBlock)
public TempBlock getTrail()
public void setTrail(TempBlock trail)
public TempBlock getTrail2()
public void setTrail2(TempBlock trail2)
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.Map<org.bukkit.block.Block,org.bukkit.block.Block> getAffectedBlocks()
public java.util.HashSet<java.lang.Byte> getWaterTypes()
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)
public double getCollisionRadius()
public void setCollisionRadius(double collisionRadius)