public class IceBlast extends IceAbility
Constructor and Description |
---|
IceBlast(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static void |
activate(org.bukkit.entity.Player player) |
void |
breakParticles(int amount) |
double |
getCollisionRadius() |
long |
getCooldown() |
double |
getDamage() |
byte |
getData() |
double |
getDeflectRange() |
org.bukkit.Location |
getDestination() |
org.bukkit.Location |
getFirstDestination() |
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 |
getRange() |
TempBlock |
getSource() |
org.bukkit.block.Block |
getSourceBlock() |
long |
getTime() |
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 |
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 |
setCollisionRadius(double collisionRadius) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setData(byte data) |
void |
setDeflectRange(double deflectRange) |
void |
setDestination(org.bukkit.Location destination) |
void |
setFirstDestination(org.bukkit.Location firstDestination) |
void |
setInterval(long interval) |
void |
setLocation(org.bukkit.Location location) |
void |
setPrepared(boolean prepared) |
void |
setProgressing(boolean progressing) |
void |
setRange(double range) |
void |
setSettingUp(boolean settingUp) |
void |
setSource(TempBlock source) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setTime(long time) |
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, isHiddenAbility, isRemoved, isStarted, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, start
public TempBlock source
public static void activate(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 void progress()
Ability
public void breakParticles(int amount)
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 isPrepared()
public void setPrepared(boolean prepared)
public boolean isSettingUp()
public void setSettingUp(boolean settingUp)
public boolean isProgressing()
public void setProgressing(boolean progressing)
public byte getData()
public void setData(byte data)
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 getDamage()
public void setDamage(double damage)
public double getCollisionRadius()
public void setCollisionRadius(double collisionRadius)
public double getDeflectRange()
public void setDeflectRange(double deflectRange)
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 getDestination()
public void setDestination(org.bukkit.Location destination)
public TempBlock getSource()
public void setSource(TempBlock source)
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)