public class MetalClips extends MetalAbility
Constructor and Description |
---|
MetalClips(org.bukkit.entity.Player player,
int abilityType) |
Modifier and Type | Method and Description |
---|---|
void |
crush() |
void |
formArmor() |
int |
getAbilityType() |
long |
getArmorStartTime() |
int |
getArmorTime() |
long |
getCooldown() |
long |
getCrushCooldown() |
double |
getCrushDamage() |
static java.util.Map<org.bukkit.entity.Entity,java.lang.Integer> |
getEntityClipsCount() |
org.bukkit.Location |
getLocation()
Specifies the Location of the ability, which may be slightly inaccurate
depending on the Ability implementation.
|
double |
getMagnetPower() |
int |
getMagnetRange() |
int |
getMetalClipsCount() |
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() |
static org.bukkit.inventory.ItemStack[] |
getOriginalArmor(org.bukkit.entity.LivingEntity ent) |
static org.bukkit.inventory.ItemStack |
getOriginalBoots(org.bukkit.entity.LivingEntity ent) |
static org.bukkit.inventory.ItemStack |
getOriginalChestplate(org.bukkit.entity.LivingEntity ent) |
static org.bukkit.inventory.ItemStack |
getOriginalHelmet(org.bukkit.entity.LivingEntity ent) |
static org.bukkit.inventory.ItemStack |
getOriginalLeggings(org.bukkit.entity.LivingEntity ent) |
double |
getRange() |
long |
getShootCooldown() |
org.bukkit.entity.LivingEntity |
getTargetEntity() |
static java.util.Map<org.bukkit.entity.Entity,MetalClips> |
getTargetToAbility() |
java.util.List<org.bukkit.entity.Item> |
getTrackedIngots() |
boolean |
isBeingWorn() |
boolean |
isCanLoot() |
boolean |
isCanThrow() |
boolean |
isCanUse4Clips() |
static boolean |
isControlled(org.bukkit.entity.LivingEntity player) |
boolean |
isControlling() |
static boolean |
isControllingEntity(org.bukkit.entity.Player player) |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
boolean |
isMagnetized() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
launch() |
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. |
static boolean |
removeControlledEnitity(org.bukkit.entity.LivingEntity entity) |
void |
removeDeadIngots() |
void |
resetArmor() |
void |
setAbilityType(int abilityType) |
void |
setArmorStartTime(long armorStartTime) |
void |
setArmorTime(int armorTime) |
void |
setBeingWorn(boolean isBeingWorn) |
void |
setCanLoot(boolean canLoot) |
void |
setCanThrow(boolean canThrow) |
void |
setCanUse4Clips(boolean canUse4Clips) |
void |
setControlling(boolean isControlling) |
void |
setCooldown(long cooldown) |
void |
setCrushDamage(double crushDamage) |
void |
setMagnetized(boolean isMagnetized) |
void |
setMagnetPower(double magnetPower) |
void |
setMagnetRange(int magnetRange) |
void |
setMetalClipsCount(int metalClipsCount) |
void |
setRange(double range) |
void |
setTargetEntity(org.bukkit.entity.LivingEntity targetEntity) |
void |
shootMetal() |
getElement, getParentAbility
addTempAirBlock, displaySandParticle, getEarthbendableBlocksLength, getEarthSourceBlock, getEarthSourceBlock, 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 static org.bukkit.inventory.ItemStack getOriginalHelmet(org.bukkit.entity.LivingEntity ent)
public static org.bukkit.inventory.ItemStack getOriginalChestplate(org.bukkit.entity.LivingEntity ent)
public static org.bukkit.inventory.ItemStack getOriginalLeggings(org.bukkit.entity.LivingEntity ent)
public static org.bukkit.inventory.ItemStack getOriginalBoots(org.bukkit.entity.LivingEntity ent)
public static org.bukkit.inventory.ItemStack[] getOriginalArmor(org.bukkit.entity.LivingEntity ent)
public void shootMetal()
public void formArmor()
public void resetArmor()
public void launch()
public void crush()
public void progress()
Ability
public void removeDeadIngots()
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 static boolean isControlled(org.bukkit.entity.LivingEntity player)
public static boolean isControllingEntity(org.bukkit.entity.Player player)
public static java.util.Map<org.bukkit.entity.Entity,java.lang.Integer> getEntityClipsCount()
public static java.util.Map<org.bukkit.entity.Entity,MetalClips> getTargetToAbility()
public static boolean removeControlledEnitity(org.bukkit.entity.LivingEntity entity)
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 long getShootCooldown()
public long getCrushCooldown()
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 isBeingWorn()
public void setBeingWorn(boolean isBeingWorn)
public boolean isControlling()
public void setControlling(boolean isControlling)
public boolean isCanThrow()
public void setCanThrow(boolean canThrow)
public boolean isMagnetized()
public void setMagnetized(boolean isMagnetized)
public boolean isCanUse4Clips()
public void setCanUse4Clips(boolean canUse4Clips)
public boolean isCanLoot()
public void setCanLoot(boolean canLoot)
public int getMetalClipsCount()
public void setMetalClipsCount(int metalClipsCount)
public int getAbilityType()
public void setAbilityType(int abilityType)
public int getArmorTime()
public void setArmorTime(int armorTime)
public double getCrushDamage()
public void setCrushDamage(double crushDamage)
public int getMagnetRange()
public void setMagnetRange(int magnetRange)
public long getArmorStartTime()
public void setArmorStartTime(long armorStartTime)
public double getMagnetPower()
public void setMagnetPower(double magnetPower)
public double getRange()
public void setRange(double range)
public org.bukkit.entity.LivingEntity getTargetEntity()
public void setTargetEntity(org.bukkit.entity.LivingEntity targetEntity)
public org.bukkit.inventory.ItemStack[] getOldArmor()
public java.util.List<org.bukkit.entity.Item> getTrackedIngots()
public void setCooldown(long cooldown)