public class WaterCombo extends IceAbility implements ComboAbility
Modifier and Type | Class and Description |
---|---|
static class |
WaterCombo.AbilityState |
class |
WaterCombo.IceBullet |
class |
WaterCombo.IceWave |
Constructor and Description |
---|
WaterCombo(org.bukkit.entity.Player player,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canThaw(org.bukkit.block.Block block) |
void |
createBlock(org.bukkit.block.Block block,
org.bukkit.Material mat) |
void |
createBlock(org.bukkit.block.Block block,
org.bukkit.Material mat,
byte data) |
java.lang.Object |
createNewComboInstance(org.bukkit.entity.Player player)
Creates a new instance of the combo from a specific player.
|
void |
drawWaterCircle(org.bukkit.Location loc,
double theta,
double increment,
double radius) |
void |
drawWaterCircle(org.bukkit.Location loc,
double theta,
double increment,
double radius,
org.bukkit.Material mat,
byte data) |
java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,TempBlock> |
getAffectedBlocks() |
double |
getAnimationSpeed() |
java.util.ArrayList<ComboManager.AbilityInformation> |
getCombination()
Returns the list of abilities which constitute the combo.
|
long |
getCooldown() |
double |
getDamage() |
org.bukkit.util.Vector |
getDirection() |
static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,TempBlock> |
getFrozenBlocks() |
java.lang.String |
getInstructions()
Accessor Method to get the instructions for using this combo.
|
double |
getKnockback() |
int |
getLeftClicks() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
double |
getMaxShots() |
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
org.bukkit.Location |
getOrigin() |
double |
getRadius() |
double |
getRange() |
int |
getRightClicks() |
double |
getShootTime() |
double |
getShots() |
double |
getSpeed() |
WaterCombo.AbilityState |
getState() |
java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> |
getTasks() |
long |
getTime() |
static java.util.ArrayList<WaterCombo> |
getWaterCombo(org.bukkit.entity.Player player,
java.lang.String ability) |
WaterSourceGrabber |
getWaterGrabber() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHiddenAbility()
A hidden ability is an ability that should not be shown by commands such
as /bending display and /bending help.
|
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
manageShots() |
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 |
revertBlocks() |
void |
setAnimationSpeed(double animationSpeed) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setDirection(org.bukkit.util.Vector direction) |
void |
setKnockback(double knockback) |
void |
setLeftClicks(int leftClicks) |
void |
setLocation(org.bukkit.Location location) |
void |
setMaxShots(double maxShots) |
void |
setName(java.lang.String name) |
void |
setOrigin(org.bukkit.Location origin) |
void |
setRadius(double radius) |
void |
setRange(double range) |
void |
setRightClicks(int rightClicks) |
void |
setShootTime(double shootTime) |
void |
setShots(double shots) |
void |
setSpeed(double speed) |
void |
setState(WaterCombo.AbilityState state) |
void |
setTime(long time) |
void |
setWaterGrabber(WaterSourceGrabber waterGrabber) |
static void |
thaw(org.bukkit.block.Block block) |
getElement, getParentAbility
canAutoSource, canDynamicSource, 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, isRemoved, isStarted, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, start
public WaterCombo(org.bukkit.entity.Player player, java.lang.String name)
public void createBlock(org.bukkit.block.Block block, org.bukkit.Material mat)
public void createBlock(org.bukkit.block.Block block, org.bukkit.Material mat, byte data)
public void drawWaterCircle(org.bukkit.Location loc, double theta, double increment, double radius)
public void drawWaterCircle(org.bukkit.Location loc, double theta, double increment, double radius, org.bukkit.Material mat, byte data)
public void manageShots()
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 revertBlocks()
public static boolean canThaw(org.bukkit.block.Block block)
public static java.util.ArrayList<WaterCombo> getWaterCombo(org.bukkit.entity.Player player, java.lang.String ability)
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.getLocation
in interface Ability
BendingPlayer.canBend(CoreAbility)
public long getCooldown()
getCooldown
in interface Ability
public boolean isHiddenAbility()
Ability
isHiddenAbility
in interface Ability
isHiddenAbility
in class CoreAbility
public boolean isSneakAbility()
Ability
PlayerToggleSneakEvent
as a
controlling mechanism. Currently WaterPassive
will not work while
the player has a sneak ability bound.isSneakAbility
in interface Ability
public boolean isHarmlessAbility()
Ability
isHarmlessAbility
in interface Ability
public java.lang.String getInstructions()
ComboAbility
getInstructions
in interface ComboAbility
public java.lang.Object createNewComboInstance(org.bukkit.entity.Player player)
ComboAbility
createNewComboInstance
in interface ComboAbility
player
- The player using the combo.public java.util.ArrayList<ComboManager.AbilityInformation> getCombination()
ComboAbility
getCombination
in interface ComboAbility
public int getLeftClicks()
public void setLeftClicks(int leftClicks)
public int getRightClicks()
public void setRightClicks(int rightClicks)
public double getDamage()
public void setDamage(double damage)
public double getSpeed()
public void setSpeed(double speed)
public double getRange()
public void setRange(double range)
public double getKnockback()
public void setKnockback(double knockback)
public double getRadius()
public void setRadius(double radius)
public double getShootTime()
public void setShootTime(double shootTime)
public double getShots()
public void setShots(double shots)
public double getMaxShots()
public void setMaxShots(double maxShots)
public double getAnimationSpeed()
public void setAnimationSpeed(double animationSpeed)
public long getTime()
public void setTime(long time)
public WaterCombo.AbilityState getState()
public void setState(WaterCombo.AbilityState state)
public org.bukkit.Location getOrigin()
public void setOrigin(org.bukkit.Location origin)
public org.bukkit.util.Vector getDirection()
public void setDirection(org.bukkit.util.Vector direction)
public WaterSourceGrabber getWaterGrabber()
public void setWaterGrabber(WaterSourceGrabber waterGrabber)
public java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> getTasks()
public static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,TempBlock> getFrozenBlocks()
public java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,TempBlock> getAffectedBlocks()
public void setCooldown(long cooldown)
public void setName(java.lang.String name)
public void setLocation(org.bukkit.Location location)