public class EarthBlast extends EarthAbility
Constructor and Description |
---|
EarthBlast(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static boolean |
annihilateBlasts(org.bukkit.Location location,
double radius,
org.bukkit.entity.Player source) |
static java.util.ArrayList<EarthBlast> |
getAroundPoint(org.bukkit.Location location,
double radius) |
static EarthBlast |
getBlastFromSource(org.bukkit.block.Block block) |
double |
getCollisionRadius() |
long |
getCooldown() |
double |
getDamage() |
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 |
getPushFactor() |
double |
getRange() |
double |
getSelectRange() |
org.bukkit.block.Block |
getSourceBlock() |
org.bukkit.Material |
getSourcetype() |
double |
getSpeed() |
long |
getTime() |
boolean |
isAtDestination() |
boolean |
isCanHitSelf() |
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. |
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 |
setAtDestination(boolean isAtDestination) |
void |
setCanHitSelf(boolean canHitSelf) |
void |
setCollisionRadius(double collisionRadius) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
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 |
setProgressing(boolean isProgressing) |
void |
setPushFactor(double pushFactor) |
void |
setRange(double range) |
void |
setSelectRange(double selectRange) |
void |
setSettingUp(boolean isSettingUp) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setSourcetype(org.bukkit.Material sourcetype) |
void |
setSpeed(double speed) |
void |
setTime(long time) |
void |
throwEarth() |
static void |
throwEarth(org.bukkit.entity.Player player) |
addTempAirBlock, displaySandParticle, getEarthbendableBlocksLength, getEarthSourceBlock, getEarthSourceBlock, getElement, getLavaSourceBlock, getLavaSourceBlock, getLavaSourceBlock, getMetalAugment, getMovedEarth, getNearbyEarthBlock, getPreventEarthbendingBlocks, getPreventPhysicsBlocks, getSubChatColor, getTargetEarthBlock, getTargetEarthBlock, getTempAirLocations, isEarthbendable, isEarthbendable, isEarthbendable, isEarthbendable, isEarthRevertOn, isExplosiveAbility, isIgniteAbility, isLavabendable, isLavabendable, isMetalbendable, isMetalbendable, isMetalbendable, isSandbendable, isSandbendable, isSandbendable, moveEarth, moveEarth, moveEarth, moveEarth, moveEarthBlock, playEarthbendingSound, playMetalbendingSound, playSandBendingSound, removeAllEarthbendedBlocks, removeRevertIndex, removeSandSpouts, removeSandSpouts, revertAirBlock, revertAirBlock, revertBlock, stopBending
getTransparentMaterial, getTransparentMaterialSet, isDay, isEarth, isEarth, isFullMoon, isIce, isIce, isLava, isLava, isLunarEclipse, isMeltable, isMetal, isMetal, isMetalBlock, isNegativeEffect, isNeutralEffect, isNight, isPlant, isPlant, isPositiveEffect, isSand, isSand, isSnow, isSnow, 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 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 throwEarth()
public static boolean annihilateBlasts(org.bukkit.Location location, double radius, org.bukkit.entity.Player source)
public static java.util.ArrayList<EarthBlast> getAroundPoint(org.bukkit.Location location, double radius)
public static EarthBlast getBlastFromSource(org.bukkit.block.Block block)
public static void removeAroundPoint(org.bukkit.Location location, double radius)
public static void throwEarth(org.bukkit.entity.Player player)
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 isProgressing)
public boolean isAtDestination()
public void setAtDestination(boolean isAtDestination)
public boolean isSettingUp()
public void setSettingUp(boolean isSettingUp)
public boolean isCanHitSelf()
public void setCanHitSelf(boolean canHitSelf)
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 getSpeed()
public void setSpeed(double speed)
public double getPushFactor()
public void setPushFactor(double pushFactor)
public double getSelectRange()
public void setSelectRange(double selectRange)
public double getDeflectRange()
public void setDeflectRange(double deflectRange)
public double getCollisionRadius()
public void setCollisionRadius(double collisionRadius)
public org.bukkit.Material getSourcetype()
public void setSourcetype(org.bukkit.Material sourcetype)
public org.bukkit.Location getDestination()
public void setDestination(org.bukkit.Location destination)
public org.bukkit.Location getFirstDestination()
public void setFirstDestination(org.bukkit.Location firstDestination)
public org.bukkit.block.Block getSourceBlock()
public void setSourceBlock(org.bukkit.block.Block sourceBlock)
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)