public class FireCombo extends FireAbility implements ComboAbility
Modifier and Type | Class and Description |
---|---|
static class |
FireCombo.FireComboStream |
class |
FireCombo.FireKick |
class |
FireCombo.FireSpin |
class |
FireCombo.FireWheel |
class |
FireCombo.JetBlast |
class |
FireCombo.JetBlaze |
Constructor and Description |
---|
FireCombo(org.bukkit.entity.Player player,
java.lang.String ability) |
Modifier and Type | Method and Description |
---|---|
void |
collision(org.bukkit.entity.LivingEntity entity,
org.bukkit.util.Vector direction,
FireCombo.FireComboStream fstream) |
java.lang.Object |
createNewComboInstance(org.bukkit.entity.Player player)
Creates a new instance of the combo from a specific player.
|
java.lang.String |
getAbility() |
java.util.ArrayList<org.bukkit.entity.LivingEntity> |
getAffectedEntities() |
static java.util.ArrayList<java.lang.String> |
getBlockableAbilities() |
ClickType |
getClickType() |
java.util.ArrayList<ComboManager.AbilityInformation> |
getCombination()
Returns the list of abilities which constitute the combo.
|
long |
getCooldown() |
double |
getDamage() |
org.bukkit.Location |
getDestination() |
org.bukkit.util.Vector |
getDirection() |
static java.util.ArrayList<FireCombo> |
getFireCombo(org.bukkit.entity.Player player,
ClickType type)
Returns all of the FireCombos created by a specific player but filters
the abilities based on shift or click.
|
double |
getFireTicks() |
double |
getHeight() |
java.lang.String |
getInstructions()
Accessor Method to get the instructions for using this combo.
|
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.
|
org.bukkit.Location |
getOrigin() |
int |
getProgressCounter() |
double |
getRadius() |
double |
getRange() |
double |
getSpeed() |
java.util.ArrayList<FireCombo.FireComboStream> |
getTasks() |
long |
getTime() |
boolean |
isFirstTime() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isHiddenAbility()
A hidden ability is an ability that should not be shown by commands such
as /bending display and /bending help.
|
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
progress()
Causes the ability to be updated.
|
void |
remove()
Removes this instance of FireCombo, cleans up any blocks that are
remaining in totalBlocks, and cancels any remaining tasks.
|
static boolean |
removeAroundPoint(org.bukkit.entity.Player player,
java.lang.String ability,
org.bukkit.Location loc,
double radius) |
void |
setAbility(java.lang.String ability) |
void |
setClickType(ClickType clickType) |
void |
setCooldown(long cooldown) |
void |
setDamage(double damage) |
void |
setDestination(org.bukkit.Location destination) |
void |
setDirection(org.bukkit.util.Vector direction) |
void |
setFireTicks(double fireTicks) |
void |
setFirstTime(boolean firstTime) |
void |
setHeight(double height) |
void |
setKnockback(double knockback) |
void |
setLocation(org.bukkit.Location location) |
void |
setOrigin(org.bukkit.Location origin) |
void |
setProgressCounter(int progressCounter) |
void |
setRadius(double radius) |
void |
setRange(double range) |
void |
setSpeed(double speed) |
void |
setTime(long time) |
canFireGrief, createTempFire, getDayFactor, getDayFactor, getDayFactor, getElement, 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, isRemoved, isStarted, progressAll, registerAbilities, registerAddonAbilities, registerPluginAbilities, removeAll, start
public FireCombo(org.bukkit.entity.Player player, java.lang.String ability)
public static java.util.ArrayList<FireCombo> getFireCombo(org.bukkit.entity.Player player, ClickType type)
public static boolean removeAroundPoint(org.bukkit.entity.Player player, java.lang.String ability, org.bukkit.Location loc, double radius)
public void collision(org.bukkit.entity.LivingEntity entity, org.bukkit.util.Vector direction, FireCombo.FireComboStream fstream)
public void progress()
Ability
public void remove()
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.getLocation
in interface Ability
BendingPlayer.canBend(CoreAbility)
public long getCooldown()
getCooldown
in interface Ability
public boolean isSneakAbility()
Ability
PlayerToggleSneakEvent
as a
controlling mechanism. Currently WaterPassive
will not work while
the player has a sneak ability bound.isSneakAbility
in interface Ability
public boolean isHarmlessAbility()
Ability
isHarmlessAbility
in interface Ability
public java.lang.String getInstructions()
ComboAbility
getInstructions
in interface ComboAbility
public java.lang.Object createNewComboInstance(org.bukkit.entity.Player player)
ComboAbility
createNewComboInstance
in interface ComboAbility
player
- The player using the combo.public java.util.ArrayList<ComboManager.AbilityInformation> getCombination()
ComboAbility
getCombination
in interface ComboAbility
public boolean isHiddenAbility()
Ability
isHiddenAbility
in interface Ability
isHiddenAbility
in class CoreAbility
public boolean isFirstTime()
public void setFirstTime(boolean firstTime)
public int getProgressCounter()
public void setProgressCounter(int progressCounter)
public long getTime()
public void setTime(long time)
public double getDamage()
public void setDamage(double damage)
public double getSpeed()
public void setSpeed(double speed)
public double getRange()
public void setRange(double range)
public double getKnockback()
public void setKnockback(double knockback)
public double getFireTicks()
public void setFireTicks(double fireTicks)
public double getHeight()
public void setHeight(double height)
public double getRadius()
public void setRadius(double radius)
public ClickType getClickType()
public void setClickType(ClickType clickType)
public java.lang.String getAbility()
public void setAbility(java.lang.String ability)
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 org.bukkit.util.Vector getDirection()
public void setDirection(org.bukkit.util.Vector direction)
public static java.util.ArrayList<java.lang.String> getBlockableAbilities()
public java.util.ArrayList<org.bukkit.entity.LivingEntity> getAffectedEntities()
public java.util.ArrayList<FireCombo.FireComboStream> getTasks()
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)