public class PhaseChangeFreeze extends IceAbility
Constructor and Description |
---|
PhaseChangeFreeze(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canThaw(org.bukkit.block.Block block) |
static void |
freeze(org.bukkit.entity.Player player,
org.bukkit.block.Block block) |
long |
getCooldown() |
static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,java.lang.Byte> |
getFrozenBlocks() |
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 int |
getOverloadCounter() |
static int |
getOverloadingLimit() |
double |
getRadius() |
double |
getRange() |
static double |
getRemoveRange() |
static void |
handleFrozenBlocks() |
boolean |
isHarmlessAbility()
Determines if this ability is considered harmless against other players.
|
static boolean |
isOverloading() |
boolean |
isSneakAbility()
Determines if this ability uses the
PlayerToggleSneakEvent as a
controlling mechanism. |
void |
progress()
Causes the ability to be updated.
|
static void |
removeAllCleanup() |
void |
setCooldown(long cooldown) |
void |
setLocation(org.bukkit.Location location) |
static void |
setOverloadCounter(int overloadCounter) |
static void |
setOverloading(boolean overloading) |
static void |
setOverloadingLimit(int overloadingLimit) |
void |
setRadius(double radius) |
void |
setRange(double range) |
static void |
thaw(org.bukkit.block.Block block) |
getElement, getParentAbility
canAutoSource, canDynamicSource, 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, remove, removeAll, start
public static void freeze(org.bukkit.entity.Player player, org.bukkit.block.Block block)
public static void thaw(org.bukkit.block.Block block)
public static void handleFrozenBlocks()
public static boolean canThaw(org.bukkit.block.Block block)
public static void removeAllCleanup()
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.BendingPlayer.canBend(CoreAbility)
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 static boolean isOverloading()
public static void setOverloading(boolean overloading)
public static int getOverloadingLimit()
public static void setOverloadingLimit(int overloadingLimit)
public static int getOverloadCounter()
public static void setOverloadCounter(int overloadCounter)
public double getRange()
public void setRange(double range)
public double getRadius()
public void setRadius(double radius)
public static java.util.concurrent.ConcurrentHashMap<org.bukkit.block.Block,java.lang.Byte> getFrozenBlocks()
public static double getRemoveRange()
public void setCooldown(long cooldown)
public void setLocation(org.bukkit.Location location)