public class WaterArms extends WaterAbility
Modifier and Type | Class and Description |
---|---|
static class |
WaterArms.Arm
Arm Enum value for deciding which arm is being used.
|
Constructor and Description |
---|
WaterArms(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDisplayActiveArm() |
boolean |
canLightningDamage() |
void |
displayBoundMsg(int slot) |
boolean |
displayLeftArm()
Displays the left arm.
|
boolean |
displayRightArm()
Displays the right arm.
|
WaterArms.Arm |
getActiveArm()
Returns the active arm of the player.
|
org.bukkit.Location |
getActiveArmEnd() |
static java.util.Map<org.bukkit.block.Block,java.lang.Long> |
getBlockRevertTimes() |
long |
getCooldown() |
int |
getFreezeSlot() |
int |
getInitLength() |
long |
getLastClickTime() |
boolean |
getLeftArmConsumed() |
org.bukkit.Location |
getLeftArmEnd()
Returns the location of the tip of the left arm assuming it is fully
extended.
|
java.lang.Integer |
getLengthReduction() |
double |
getLightningDamage() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
java.lang.Integer |
getMaxIceBlasts() |
java.lang.Integer |
getMaxPunches() |
java.lang.Integer |
getMaxUses() |
java.lang.String |
getName()
The name of the ability is used for commands such as /bending
display and /bending help.
|
boolean |
getRightArmConsumed() |
org.bukkit.Location |
getRightArmEnd()
Returns the location of the tip of the right arm, assuming it is fully
extended.
|
int |
getSelectedSlot() |
java.lang.String |
getSneakMsg() |
int |
getSourceGrabRange() |
static java.lang.Integer[] |
getUnbreakables() |
org.bukkit.World |
getWorld() |
boolean |
isCanUsePlantSource() |
boolean |
isCooldownLeft() |
boolean |
isCooldownRight() |
java.lang.Boolean |
isFullSource() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isLeftArmCooldown() |
boolean |
isLightningEnabled() |
boolean |
isLightningKill() |
boolean |
isRightArmCooldown() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
static boolean |
isUnbreakable(org.bukkit.block.Block block) |
void |
prepareCancel() |
void |
progress()
Causes the ability to be updated.
|
static void |
progressAllCleanup() |
void |
remove()
Causes this CoreAbility instance to be removed, and
Ability.progress()
will no longer be called every tick. |
static void |
removeAllCleanup() |
void |
setActiveArm(WaterArms.Arm activeArm) |
void |
setActiveArmCooldown(boolean cooldown) |
void |
setCanLightningDamage(boolean lightningEnabled) |
void |
setCanUsePlantSource(boolean canUsePlantSource) |
void |
setCooldown(long cooldown) |
void |
setCooldownLeft(boolean cooldownLeft) |
void |
setCooldownRight(boolean cooldownRight) |
void |
setFreezeSlot(int freezeSlot) |
void |
setFullSource(boolean fullSource) |
void |
setInitLength(int initLength) |
void |
setLastClickTime(long lastClickTime) |
void |
setLeftArmConsumed(boolean consumed) |
void |
setLeftArmCooldown(boolean cooldown) |
void |
setLengthReduction(int lengthReduction) |
void |
setLightningDamage(double lightningDamage) |
void |
setLightningEnabled(boolean lightningEnabled) |
void |
setLightningKill(boolean lightningKill) |
void |
setMaxIceBlasts(int maxIceBlasts) |
void |
setMaxPunches(int maxPunches) |
void |
setMaxUses(int maxUses) |
void |
setRightArmConsumed(boolean consumed) |
void |
setRightArmCooldown(boolean cooldown) |
void |
setSelectedSlot(int selectedSlot) |
void |
setSneakMsg(java.lang.String sneakMsg) |
void |
setSourceGrabRange(int sourceGrabRange) |
void |
setWorld(org.bukkit.World world) |
void |
switchActiveArm()
Switches the active arm of a player.
|
WaterArms.Arm |
switchPreferredArm()
Switches to the most suitable arm for the player.
|
canAutoSource, canDynamicSource, getElement, getIceSourceBlock, getIceSourceBlock, getNightFactor, getNightFactor, getNightFactor, getNightFactor, getPlantSourceBlock, getPlantSourceBlock, getPlantSourceBlock, getWaterSourceBlock, isAdjacentToFrozenBlock, isExplosiveAbility, isIcebendable, isIcebendable, isIcebendable, isIcebendable, isIgniteAbility, isLeaves, isLeaves, isPlantbendable, isPlantbendable, isPlantbendable, isPlantbendable, isSnow, isSnow, isWaterbendable, isWaterbendable, isWaterbendable, isWaterbendable, playFocusWaterEffect, playIcebendingSound, playPlantbendingSound, playWaterbendingSound, removeWaterSpouts, removeWaterSpouts, stopBending
getTransparentMaterial, getTransparentMaterialSet, isDay, isEarth, isEarth, isFullMoon, isIce, isIce, isLava, isLava, isLunarEclipse, isMeltable, isMetal, isMetal, isMetalBlock, isNegativeEffect, isNeutralEffect, isNight, isPlant, isPlant, isPositiveEffect, isSand, isSand, 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 boolean displayRightArm()
public boolean displayLeftArm()
public org.bukkit.Location getRightArmEnd()
public org.bukkit.Location getLeftArmEnd()
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 prepareCancel()
public static void progressAllCleanup()
public static void removeAllCleanup()
public static boolean isUnbreakable(org.bukkit.block.Block block)
public void displayBoundMsg(int slot)
public WaterArms.Arm getActiveArm()
WaterArms.Arm
of the playerpublic void switchActiveArm()
public WaterArms.Arm switchPreferredArm()
WaterArms.Arm
that was swapped topublic boolean canDisplayActiveArm()
public org.bukkit.Location getActiveArmEnd()
public java.lang.Boolean isFullSource()
public boolean getLeftArmConsumed()
public void setLeftArmConsumed(boolean consumed)
public boolean getRightArmConsumed()
public void setRightArmConsumed(boolean consumed)
public java.lang.Integer getLengthReduction()
public void setLengthReduction(int lengthReduction)
public java.lang.Integer getMaxPunches()
public void setMaxPunches(int maxPunches)
public java.lang.Integer getMaxUses()
public void setMaxUses(int maxUses)
public java.lang.Integer getMaxIceBlasts()
public void setMaxIceBlasts(int maxIceBlasts)
public boolean canLightningDamage()
public void setCanLightningDamage(boolean lightningEnabled)
public double getLightningDamage()
public void setLightningDamage(double lightningDamage)
public boolean isLeftArmCooldown()
public void setLeftArmCooldown(boolean cooldown)
public boolean isRightArmCooldown()
public void setRightArmCooldown(boolean cooldown)
public void setActiveArmCooldown(boolean cooldown)
public long getCooldown()
public void setCooldown(long cooldown)
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 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 isCooldownLeft()
public void setCooldownLeft(boolean cooldownLeft)
public boolean isCooldownRight()
public void setCooldownRight(boolean cooldownRight)
public boolean isCanUsePlantSource()
public void setCanUsePlantSource(boolean canUsePlantSource)
public boolean isLightningEnabled()
public void setLightningEnabled(boolean lightningEnabled)
public boolean isLightningKill()
public void setLightningKill(boolean lightningKill)
public int getInitLength()
public void setInitLength(int initLength)
public int getSourceGrabRange()
public void setSourceGrabRange(int sourceGrabRange)
public int getSelectedSlot()
public void setSelectedSlot(int selectedSlot)
public int getFreezeSlot()
public void setFreezeSlot(int freezeSlot)
public long getLastClickTime()
public void setLastClickTime(long lastClickTime)
public org.bukkit.World getWorld()
public void setWorld(org.bukkit.World world)
public java.lang.String getSneakMsg()
public void setSneakMsg(java.lang.String sneakMsg)
public static java.util.Map<org.bukkit.block.Block,java.lang.Long> getBlockRevertTimes()
public static java.lang.Integer[] getUnbreakables()
public void setFullSource(boolean fullSource)
public void setActiveArm(WaterArms.Arm activeArm)