public class EarthArmor extends EarthAbility
Constructor and Description |
---|
EarthArmor(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
long |
getCooldown() |
long |
getDuration() |
org.bukkit.block.Block |
getHeadBlock() |
org.bukkit.Location |
getHeadBlockLocation() |
byte |
getHeadData() |
org.bukkit.Material |
getHeadType() |
long |
getInterval() |
org.bukkit.block.Block |
getLegsBlock() |
org.bukkit.Location |
getLegsBlockLocation() |
byte |
getLegsData() |
org.bukkit.Material |
getLegsType() |
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.
|
org.bukkit.inventory.ItemStack[] |
getOldArmor() |
double |
getSelectRange() |
int |
getStrength() |
long |
getTime() |
boolean |
isComplete() |
boolean |
isFormed() |
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.
|
void |
remove()
Causes this CoreAbility instance to be removed, and
Ability.progress()
will no longer be called every tick. |
void |
setComplete(boolean complete) |
void |
setCooldown(long cooldown) |
void |
setDuration(long duration) |
void |
setFormed(boolean formed) |
void |
setHeadBlock(org.bukkit.block.Block headBlock) |
void |
setHeadBlockLocation(org.bukkit.Location headBlockLocation) |
void |
setHeadData(byte headData) |
void |
setHeadType(org.bukkit.Material headType) |
void |
setInterval(long interval) |
void |
setLegsBlock(org.bukkit.block.Block legsBlock) |
void |
setLegsBlockLocation(org.bukkit.Location legsBlockLocation) |
void |
setLegsData(byte legsData) |
void |
setLegsType(org.bukkit.Material legsType) |
void |
setOldArmor(org.bukkit.inventory.ItemStack[] oldArmor) |
void |
setSelectRange(double selectRange) |
void |
setStrength(int strength) |
void |
setTime(long time) |
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 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 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 isFormed()
public void setFormed(boolean formed)
public boolean isComplete()
public void setComplete(boolean complete)
public byte getHeadData()
public void setHeadData(byte headData)
public byte getLegsData()
public void setLegsData(byte legsData)
public int getStrength()
public void setStrength(int strength)
public double getSelectRange()
public void setSelectRange(double selectRange)
public long getTime()
public void setTime(long time)
public long getInterval()
public void setInterval(long interval)
public long getDuration()
public void setDuration(long duration)
public org.bukkit.block.Block getHeadBlock()
public void setHeadBlock(org.bukkit.block.Block headBlock)
public org.bukkit.block.Block getLegsBlock()
public void setLegsBlock(org.bukkit.block.Block legsBlock)
public org.bukkit.Location getHeadBlockLocation()
public void setHeadBlockLocation(org.bukkit.Location headBlockLocation)
public org.bukkit.Location getLegsBlockLocation()
public void setLegsBlockLocation(org.bukkit.Location legsBlockLocation)
public org.bukkit.Material getHeadType()
public void setHeadType(org.bukkit.Material headType)
public org.bukkit.Material getLegsType()
public void setLegsType(org.bukkit.Material legsType)
public org.bukkit.inventory.ItemStack[] getOldArmor()
public void setOldArmor(org.bukkit.inventory.ItemStack[] oldArmor)
public void setCooldown(long cooldown)