public class Lightning extends LightningAbility
Modifier and Type | Class and Description |
---|---|
class |
Lightning.AnimationLocation
Represents a Lightning Arc Point particle animation.
|
class |
Lightning.Arc
An Arc represents a Lightning arc for the specific ability.
|
class |
Lightning.LightningParticle
A Runnable Particle that continuously displays itself until it reaches a
certain time limit.
|
static class |
Lightning.State |
Constructor and Description |
---|
Lightning(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
void |
electrocute(org.bukkit.entity.LivingEntity lent)
Damages an entity, and may cause paralysis depending on the config.
|
java.util.ArrayList<org.bukkit.entity.Entity> |
getAffectedEntities() |
java.util.ArrayList<Lightning.Arc> |
getArcs() |
double |
getChainArcChance() |
double |
getChainRange() |
double |
getChargeTime() |
long |
getCooldown() |
double |
getDamage() |
org.bukkit.Location |
getDestination() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
double |
getMaxArcAngle() |
double |
getMaxChainArcs() |
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 |
getParticleRotation() |
static int |
getPointGeneration() |
double |
getRange() |
Lightning.State |
getState() |
double |
getStunChance() |
double |
getStunDuration() |
double |
getSubArcChance() |
java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> |
getTasks() |
long |
getTime() |
double |
getWaterArcRange() |
int |
getWaterArcs() |
boolean |
isArcOnIce() |
boolean |
isCharged() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHitIce() |
boolean |
isHitWater() |
boolean |
isSelfHitClose() |
boolean |
isSelfHitWater() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
progress()
Progresses the instance of this ability by 1 tick.
|
void |
removeWithTasks()
Removes the instance of this ability and cancels any current runnables
|
void |
setArcOnIce(boolean arcOnIce) |
void |
setChainArcChance(double chainArcChance) |
void |
setChainRange(double chainRange) |
void |
setCharged(boolean charged) |
void |
setChargeTime(double chargeTime) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setDestination(org.bukkit.Location destination) |
void |
setHitIce(boolean hitIce) |
void |
setHitWater(boolean hitWater) |
void |
setMaxArcAngle(double maxArcAngle) |
void |
setMaxChainArcs(double maxChainArcs) |
void |
setOrigin(org.bukkit.Location origin) |
void |
setParticleRotation(double particleRotation) |
void |
setRange(double range) |
void |
setSelfHitClose(boolean selfHitClose) |
void |
setSelfHitWater(boolean selfHitWater) |
void |
setState(Lightning.State state) |
void |
setStunChance(double stunChance) |
void |
setStunDuration(double stunDuration) |
void |
setSubArcChance(double subArcChance) |
void |
setTime(long time) |
void |
setWaterArcRange(double waterArcRange) |
void |
setWaterArcs(int waterArcs) |
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 void electrocute(org.bukkit.entity.LivingEntity lent)
lent
- The LivingEntity that is being damagedpublic void progress()
public void removeWithTasks()
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 isCharged()
public void setCharged(boolean charged)
public boolean isHitWater()
public void setHitWater(boolean hitWater)
public boolean isHitIce()
public void setHitIce(boolean hitIce)
public boolean isSelfHitWater()
public void setSelfHitWater(boolean selfHitWater)
public boolean isSelfHitClose()
public void setSelfHitClose(boolean selfHitClose)
public boolean isArcOnIce()
public void setArcOnIce(boolean arcOnIce)
public int getWaterArcs()
public void setWaterArcs(int waterArcs)
public double getRange()
public void setRange(double range)
public double getChargeTime()
public void setChargeTime(double chargeTime)
public double getSubArcChance()
public void setSubArcChance(double subArcChance)
public double getDamage()
public void setDamage(double damage)
public double getMaxChainArcs()
public void setMaxChainArcs(double maxChainArcs)
public double getChainRange()
public void setChainRange(double chainRange)
public double getWaterArcRange()
public void setWaterArcRange(double waterArcRange)
public double getChainArcChance()
public void setChainArcChance(double chainArcChance)
public double getStunChance()
public void setStunChance(double stunChance)
public double getStunDuration()
public void setStunDuration(double stunDuration)
public double getMaxArcAngle()
public void setMaxArcAngle(double maxArcAngle)
public double getParticleRotation()
public void setParticleRotation(double particleRotation)
public long getTime()
public void setTime(long time)
public Lightning.State getState()
public void setState(Lightning.State state)
public org.bukkit.Location getOrigin()
public void setOrigin(org.bukkit.Location origin)
public org.bukkit.Location getDestination()
public void setDestination(org.bukkit.Location destination)
public static int getPointGeneration()
public java.util.ArrayList<org.bukkit.entity.Entity> getAffectedEntities()
public java.util.ArrayList<Lightning.Arc> getArcs()
public java.util.ArrayList<org.bukkit.scheduler.BukkitRunnable> getTasks()
public void setCooldown(long cooldown)