public class Combustion extends CombustionAbility
Constructor and Description |
---|
Combustion(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static void |
explode(org.bukkit.entity.Player player) |
long |
getCooldown() |
double |
getDamage() |
org.bukkit.util.Vector |
getDirection() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
static long |
getMaxTicks() |
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
org.bukkit.Location |
getOrigin() |
float |
getPower() |
double |
getRadius() |
double |
getRange() |
double |
getSpeed() |
double |
getSpeedFactor() |
int |
getTicks() |
boolean |
isBreakBlocks() |
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. |
void |
progress()
Causes the ability to be updated.
|
static boolean |
removeAroundPoint(org.bukkit.Location loc,
double radius) |
void |
setBreakBlocks(boolean breakBlocks) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setDirection(org.bukkit.util.Vector direction) |
void |
setLocation(org.bukkit.Location location) |
void |
setOrigin(org.bukkit.Location origin) |
void |
setPower(float power) |
void |
setRadius(double radius) |
void |
setRange(double range) |
void |
setSpeed(double speed) |
void |
setSpeedFactor(double speedFactor) |
void |
setTicks(int ticks) |
getElement, getParentAbility
canFireGrief, createTempFire, getDayFactor, getDayFactor, getDayFactor, getSubChatColor, isExplosiveAbility, isIgnitable, isIgnitable, isIgniteAbility, isWithinFireShield, playCombustionSound, playFirebendingParticles, playFirebendingSound, playLightningbendingParticle, playLightningbendingParticle, removeFire, revertTempFire, 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, remove, removeAll, start
public static void explode(org.bukkit.entity.Player player)
public static boolean removeAroundPoint(org.bukkit.Location loc, double radius)
public void progress()
Ability
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 isBreakBlocks()
public void setBreakBlocks(boolean breakBlocks)
public int getTicks()
public void setTicks(int ticks)
public float getPower()
public void setPower(float power)
public double getDamage()
public void setDamage(double damage)
public double getRadius()
public void setRadius(double radius)
public double getSpeed()
public void setSpeed(double speed)
public double getRange()
public void setRange(double range)
public double getSpeedFactor()
public void setSpeedFactor(double speedFactor)
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 static long getMaxTicks()
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)