public class ChiCombo extends ChiAbility implements ComboAbility
Modifier and Type | Class and Description |
---|---|
class |
ChiCombo.Immobilize |
Constructor and Description |
---|
ChiCombo(org.bukkit.entity.Player player,
java.lang.String ability) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createNewComboInstance(org.bukkit.entity.Player player)
Creates a new instance of the combo from a specific player.
|
java.util.ArrayList<ComboManager.AbilityInformation> |
getCombination()
Returns the list of abilities which constitute the combo.
|
long |
getCooldown() |
long |
getDuration() |
java.lang.String |
getInstructions()
Accessor Method to get the instructions for using this combo.
|
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.
|
static java.util.Map<org.bukkit.entity.Entity,java.lang.Long> |
getParalyzedEntities() |
org.bukkit.entity.Entity |
getTarget() |
static void |
handleParalysis()
Checks the status of all paralyzed entities.
|
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.
|
static boolean |
isParalyzed(org.bukkit.entity.Entity entity)
Checks if an entity is paralyzed by a ChiCombo.
|
static boolean |
isParalyzed(org.bukkit.entity.Player player)
Convenience method to see if a Player is paralyzed by a ChiCombo.
|
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
progress()
Causes the ability to be updated.
|
void |
setCooldown(long cooldown) |
void |
setDuration(long duration) |
void |
setName(java.lang.String name) |
void |
setTarget(org.bukkit.entity.Entity target) |
getElement, isExplosiveAbility, isIgniteAbility
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, remove, removeAll, start
public ChiCombo(org.bukkit.entity.Player player, java.lang.String ability)
public static boolean isParalyzed(org.bukkit.entity.Player player)
isParalyzed(Entity)
with the Player casted to an Entity.player
- The player to check if they're paralyzedpublic static boolean isParalyzed(org.bukkit.entity.Entity entity)
entity
- The entity to check if they're paralyzedpublic static void handleParalysis()
paralyzedEntities
and removes the instance of the combo from
instances
.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 void progress()
Ability
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 isHiddenAbility()
Ability
isHiddenAbility
in interface Ability
isHiddenAbility
in class CoreAbility
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 long getDuration()
public void setDuration(long duration)
public org.bukkit.entity.Entity getTarget()
public void setTarget(org.bukkit.entity.Entity target)
public static java.util.Map<org.bukkit.entity.Entity,java.lang.Long> getParalyzedEntities()
public void setCooldown(long cooldown)
public void setName(java.lang.String name)