public class WaterSpout extends WaterAbility
Constructor and Description |
---|
WaterSpout(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<org.bukkit.block.Block,org.bukkit.block.Block> |
getAffectedBlocks() |
int |
getAngle() |
org.bukkit.block.Block |
getBase() |
TempBlock |
getBaseBlock() |
long |
getCooldown() |
double |
getHeight() |
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 |
getRotation() |
long |
getTime() |
boolean |
isCanBendOnPackedIce() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
boolean |
isUseBlockSpiral() |
boolean |
isUseParticles() |
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 boolean |
removeSpouts(org.bukkit.Location loc0,
double radius,
org.bukkit.entity.Player sourcePlayer) |
void |
revertBaseBlock() |
void |
rotateParticles(org.bukkit.block.Block block) |
void |
setAngle(int angle) |
void |
setBase(org.bukkit.block.Block base) |
void |
setBaseBlock(TempBlock baseBlock) |
void |
setCanBendOnPackedIce(boolean canBendOnPackedIce) |
void |
setHeight(double height) |
void |
setInterval(long interval) |
void |
setRotation(double rotation) |
void |
setTime(long time) |
void |
setUseBlockSpiral(boolean useBlockSpiral) |
void |
setUseParticles(boolean useParticles) |
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 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 revertBaseBlock()
public void rotateParticles(org.bukkit.block.Block block)
public static boolean removeSpouts(org.bukkit.Location loc0, double radius, org.bukkit.entity.Player sourcePlayer)
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 isCanBendOnPackedIce()
public void setCanBendOnPackedIce(boolean canBendOnPackedIce)
public boolean isUseParticles()
public void setUseParticles(boolean useParticles)
public boolean isUseBlockSpiral()
public void setUseBlockSpiral(boolean useBlockSpiral)
public int getAngle()
public void setAngle(int angle)
public long getTime()
public void setTime(long time)
public long getInterval()
public void setInterval(long interval)
public double getRotation()
public void setRotation(double rotation)
public double getHeight()
public void setHeight(double height)
public org.bukkit.block.Block getBase()
public void setBase(org.bukkit.block.Block base)
public TempBlock getBaseBlock()
public void setBaseBlock(TempBlock baseBlock)
public static java.util.Map<org.bukkit.block.Block,org.bukkit.block.Block> getAffectedBlocks()