public class LavaSurge extends LavaAbility
Constructor and Description |
---|
LavaSurge(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMoveThrough(org.bukkit.block.Block block) |
static java.util.HashSet<org.bukkit.entity.FallingBlock> |
getAllFallingBlocks() |
long |
getCooldown() |
org.bukkit.util.Vector |
getDirection() |
int |
getFallingBlockInterval() |
java.util.ArrayList<org.bukkit.entity.FallingBlock> |
getFallingBlocks() |
int |
getFallingBlocksCount() |
java.util.ArrayList<org.bukkit.block.Block> |
getFracture() |
double |
getFractureRadius() |
java.util.ArrayList<TempBlock> |
getFractureTempBlocks() |
double |
getImpactDamage() |
long |
getLastTime() |
java.util.Map<org.bukkit.entity.FallingBlock,TempBlock> |
getLavaBlocks() |
java.util.ListIterator<org.bukkit.block.Block> |
getListIterator() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
int |
getMaxBlocks() |
java.util.ArrayList<TempBlock> |
getMovingLava() |
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
int |
getParticleInterval() |
double |
getPrepareRange() |
java.util.Random |
getRandom() |
org.bukkit.block.Block |
getSourceBlock() |
org.bukkit.Location |
getStartLocation() |
long |
getTime() |
double |
getTravelRange() |
boolean |
isCanSourceBeEarth() |
boolean |
isEligible() |
boolean |
isFractureOpen() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHasSurgeStarted() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
launch() |
void |
openFracture() |
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. |
void |
removeLava() |
void |
revertFracture() |
void |
setCanSourceBeEarth(boolean canSourceBeEarth) |
void |
setCooldown(long cooldown) |
void |
setDirection(org.bukkit.util.Vector direction) |
void |
setFallingBlockInterval(int fallingBlockInterval) |
void |
setFallingBlocksCount(int fallingBlocksCount) |
void |
setFractureOpen(boolean isFractureOpen) |
void |
setFractureRadius(double fractureRadius) |
void |
setHasSurgeStarted(boolean hasSurgeStarted) |
void |
setImpactDamage(double impactDamage) |
void |
setLastTime(long lastTime) |
void |
setListIterator(java.util.ListIterator<org.bukkit.block.Block> listIterator) |
void |
setMaxBlocks(int maxBlocks) |
void |
setParticleInterval(int particleInterval) |
void |
setPrepareRange(double prepareRange) |
void |
setRandom(java.util.Random random) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setStartLocation(org.bukkit.Location startLocation) |
void |
setTime(long time) |
void |
setTravelRange(double travelRange) |
void |
skipFracture() |
getElement, getParentAbility
addTempAirBlock, displaySandParticle, getEarthbendableBlocksLength, getEarthSourceBlock, getEarthSourceBlock, 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 isEligible()
public boolean prepare()
public void launch()
public void openFracture()
public void skipFracture()
public void revertFracture()
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 boolean canMoveThrough(org.bukkit.block.Block block)
public void removeLava()
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 static java.util.HashSet<org.bukkit.entity.FallingBlock> getAllFallingBlocks()
public boolean isHasSurgeStarted()
public void setHasSurgeStarted(boolean hasSurgeStarted)
public boolean isFractureOpen()
public void setFractureOpen(boolean isFractureOpen)
public boolean isCanSourceBeEarth()
public void setCanSourceBeEarth(boolean canSourceBeEarth)
public int getFallingBlocksCount()
public void setFallingBlocksCount(int fallingBlocksCount)
public int getMaxBlocks()
public void setMaxBlocks(int maxBlocks)
public int getParticleInterval()
public void setParticleInterval(int particleInterval)
public int getFallingBlockInterval()
public void setFallingBlockInterval(int fallingBlockInterval)
public long getTime()
public void setTime(long time)
public long getLastTime()
public void setLastTime(long lastTime)
public double getImpactDamage()
public void setImpactDamage(double impactDamage)
public double getFractureRadius()
public void setFractureRadius(double fractureRadius)
public double getPrepareRange()
public void setPrepareRange(double prepareRange)
public double getTravelRange()
public void setTravelRange(double travelRange)
public org.bukkit.block.Block getSourceBlock()
public void setSourceBlock(org.bukkit.block.Block sourceBlock)
public java.util.Random getRandom()
public void setRandom(java.util.Random random)
public org.bukkit.util.Vector getDirection()
public void setDirection(org.bukkit.util.Vector direction)
public org.bukkit.Location getStartLocation()
public void setStartLocation(org.bukkit.Location startLocation)
public java.util.ListIterator<org.bukkit.block.Block> getListIterator()
public void setListIterator(java.util.ListIterator<org.bukkit.block.Block> listIterator)
public java.util.ArrayList<org.bukkit.entity.FallingBlock> getFallingBlocks()
public java.util.ArrayList<org.bukkit.block.Block> getFracture()
public java.util.ArrayList<TempBlock> getFractureTempBlocks()
public java.util.ArrayList<TempBlock> getMovingLava()
public java.util.Map<org.bukkit.entity.FallingBlock,TempBlock> getLavaBlocks()
public void setCooldown(long cooldown)