public class OctopusForm extends WaterAbility
Constructor and Description |
---|
OctopusForm(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static void |
form(org.bukkit.entity.Player player) |
double |
getAngle() |
double |
getAngleIncrement() |
double |
getAttackRange() |
java.util.ArrayList<TempBlock> |
getBlocks() |
long |
getCooldown() |
int |
getCurrentAnimationStep() |
double |
getCurrentFormHeight() |
int |
getDamage() |
long |
getInterval() |
double |
getKnockback() |
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.
|
java.util.ArrayList<TempBlock> |
getNewBlocks() |
double |
getRadius() |
int |
getRange() |
TempBlock |
getSource() |
org.bukkit.block.Block |
getSourceBlock() |
org.bukkit.Location |
getSourceLocation() |
double |
getStartAngle() |
int |
getStepCounter() |
long |
getTime() |
int |
getTotalStepCount() |
boolean |
isFormed() |
boolean |
isForming() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isSettingUp() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
boolean |
isSourceSelected() |
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 |
setAngle(double angle) |
void |
setAngleIncrement(double angleIncrement) |
void |
setAttackRange(double attackRange) |
void |
setCooldown(long cooldown) |
void |
setCurrentAnimationStep(int currentAnimationStep) |
void |
setCurrentFormHeight(double currentFormHeight) |
void |
setDamage(int damage) |
void |
setFormed(boolean formed) |
void |
setForming(boolean forming) |
void |
setInterval(long interval) |
void |
setKnockback(double knockback) |
void |
setRadius(double radius) |
void |
setRange(int range) |
void |
setSettingUp(boolean settingUp) |
void |
setSource(TempBlock source) |
void |
setSourceBlock(org.bukkit.block.Block sourceBlock) |
void |
setSourceLocation(org.bukkit.Location sourceLocation) |
void |
setSourceSelected(boolean sourceSelected) |
void |
setStartAngle(double startAngle) |
void |
setStepCounter(int stepCounter) |
void |
setTime(long time) |
void |
setTotalStepCount(int totalStepCount) |
static boolean |
wasBrokenFor(org.bukkit.entity.Player player,
org.bukkit.block.Block block) |
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 static void form(org.bukkit.entity.Player player)
public void progress()
Ability
public static boolean wasBrokenFor(org.bukkit.entity.Player player, org.bukkit.block.Block block)
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 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 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 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 isSourceSelected()
public void setSourceSelected(boolean sourceSelected)
public boolean isSettingUp()
public void setSettingUp(boolean settingUp)
public boolean isForming()
public void setForming(boolean forming)
public boolean isFormed()
public void setFormed(boolean formed)
public int getRange()
public void setRange(int range)
public int getDamage()
public void setDamage(int damage)
public int getCurrentAnimationStep()
public void setCurrentAnimationStep(int currentAnimationStep)
public int getStepCounter()
public void setStepCounter(int stepCounter)
public int getTotalStepCount()
public void setTotalStepCount(int totalStepCount)
public long getTime()
public void setTime(long time)
public long getInterval()
public void setInterval(long interval)
public double getAttackRange()
public void setAttackRange(double attackRange)
public double getKnockback()
public void setKnockback(double knockback)
public double getRadius()
public void setRadius(double radius)
public double getStartAngle()
public void setStartAngle(double startAngle)
public double getAngle()
public void setAngle(double angle)
public double getCurrentFormHeight()
public void setCurrentFormHeight(double currentFormHeight)
public double getAngleIncrement()
public void setAngleIncrement(double angleIncrement)
public org.bukkit.block.Block getSourceBlock()
public void setSourceBlock(org.bukkit.block.Block sourceBlock)
public TempBlock getSource()
public void setSource(TempBlock source)
public org.bukkit.Location getSourceLocation()
public void setSourceLocation(org.bukkit.Location sourceLocation)
public java.util.ArrayList<TempBlock> getBlocks()
public java.util.ArrayList<TempBlock> getNewBlocks()
public void setCooldown(long cooldown)