public abstract class WaterAbility extends ElementalAbility
Constructor and Description |
---|
WaterAbility(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAutoSource() |
boolean |
canDynamicSource() |
Element |
getElement()
Specifies the Element used to represent this type of ability, favoring
SubElements over Elements.
|
org.bukkit.block.Block |
getIceSourceBlock(double range) |
static org.bukkit.block.Block |
getIceSourceBlock(org.bukkit.entity.Player player,
double range) |
double |
getNightFactor() |
double |
getNightFactor(double value) |
static double |
getNightFactor(double value,
org.bukkit.World world) |
static double |
getNightFactor(org.bukkit.World world) |
org.bukkit.block.Block |
getPlantSourceBlock(double range) |
org.bukkit.block.Block |
getPlantSourceBlock(double range,
boolean onlyLeaves) |
static org.bukkit.block.Block |
getPlantSourceBlock(org.bukkit.entity.Player player,
double range,
boolean onlyLeaves) |
static org.bukkit.block.Block |
getWaterSourceBlock(org.bukkit.entity.Player player,
double range,
boolean plantbending)
Finds a valid Water source for a Player.
|
static boolean |
isAdjacentToFrozenBlock(org.bukkit.block.Block block) |
boolean |
isExplosiveAbility()
Determines if this ability can cause explosions.
|
boolean |
isIcebendable(org.bukkit.block.Block block) |
boolean |
isIcebendable(org.bukkit.Material material) |
boolean |
isIcebendable(org.bukkit.entity.Player player,
org.bukkit.Material material) |
static boolean |
isIcebendable(org.bukkit.entity.Player player,
org.bukkit.Material material,
boolean onlyIce) |
boolean |
isIgniteAbility()
Determines if this ability can ignite blocks.
|
static boolean |
isLeaves(org.bukkit.block.Block block) |
static boolean |
isLeaves(org.bukkit.Material material) |
boolean |
isPlantbendable(org.bukkit.block.Block block) |
boolean |
isPlantbendable(org.bukkit.Material material) |
boolean |
isPlantbendable(org.bukkit.entity.Player player,
org.bukkit.Material material) |
static boolean |
isPlantbendable(org.bukkit.entity.Player player,
org.bukkit.Material material,
boolean onlyLeaves) |
static boolean |
isSnow(org.bukkit.block.Block block) |
static boolean |
isSnow(org.bukkit.Material material) |
boolean |
isWaterbendable(org.bukkit.block.Block block) |
static boolean |
isWaterbendable(org.bukkit.Material material) |
boolean |
isWaterbendable(org.bukkit.entity.Player player,
org.bukkit.block.Block block) |
static boolean |
isWaterbendable(org.bukkit.entity.Player player,
java.lang.String abilityName,
org.bukkit.block.Block block) |
static void |
playFocusWaterEffect(org.bukkit.block.Block block) |
static void |
playIcebendingSound(org.bukkit.Location loc) |
static void |
playPlantbendingSound(org.bukkit.Location loc) |
static void |
playWaterbendingSound(org.bukkit.Location loc) |
static void |
removeWaterSpouts(org.bukkit.Location loc,
double radius,
org.bukkit.entity.Player source)
Removes all water spouts in a location within a certain radius.
|
static void |
removeWaterSpouts(org.bukkit.Location loc,
org.bukkit.entity.Player source)
Removes all water spouts in a location with a radius of 1.5.
|
static void |
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCooldown, getLocation, getName, isHarmlessAbility, isSneakAbility, progress
public boolean canAutoSource()
public boolean canDynamicSource()
public Element getElement()
Ability
Element.LIGHTNING
instead of Element.FIRE
.Element.SubElement.getParentElement()
public org.bukkit.block.Block getIceSourceBlock(double range)
public double getNightFactor()
public double getNightFactor(double value)
public org.bukkit.block.Block getPlantSourceBlock(double range)
public org.bukkit.block.Block getPlantSourceBlock(double range, boolean onlyLeaves)
public boolean isExplosiveAbility()
Ability
FireBlastCharged
public boolean isIgniteAbility()
Ability
public boolean isIcebendable(org.bukkit.block.Block block)
public boolean isIcebendable(org.bukkit.Material material)
public boolean isIcebendable(org.bukkit.entity.Player player, org.bukkit.Material material)
public boolean isPlantbendable(org.bukkit.block.Block block)
public boolean isPlantbendable(org.bukkit.Material material)
public boolean isPlantbendable(org.bukkit.entity.Player player, org.bukkit.Material material)
public boolean isWaterbendable(org.bukkit.block.Block block)
public boolean isWaterbendable(org.bukkit.entity.Player player, org.bukkit.block.Block block)
public static boolean isWaterbendable(org.bukkit.Material material)
public static org.bukkit.block.Block getIceSourceBlock(org.bukkit.entity.Player player, double range)
public static double getNightFactor(double value, org.bukkit.World world)
public static double getNightFactor(org.bukkit.World world)
public static org.bukkit.block.Block getPlantSourceBlock(org.bukkit.entity.Player player, double range, boolean onlyLeaves)
public static org.bukkit.block.Block getWaterSourceBlock(org.bukkit.entity.Player player, double range, boolean plantbending)
BlockSource.getWaterSourceBlock(Player, double)
player
- the player that is attempting to Waterbend.range
- the maximum block selection range.plantbending
- true if the player can bend plants.public static boolean isAdjacentToFrozenBlock(org.bukkit.block.Block block)
public static boolean isIcebendable(org.bukkit.entity.Player player, org.bukkit.Material material, boolean onlyIce)
public static boolean isPlantbendable(org.bukkit.entity.Player player, org.bukkit.Material material, boolean onlyLeaves)
public static boolean isLeaves(org.bukkit.block.Block block)
public static boolean isLeaves(org.bukkit.Material material)
public static boolean isSnow(org.bukkit.block.Block block)
public static boolean isSnow(org.bukkit.Material material)
public static boolean isWaterbendable(org.bukkit.entity.Player player, java.lang.String abilityName, org.bukkit.block.Block block)
public static void playFocusWaterEffect(org.bukkit.block.Block block)
public static void playIcebendingSound(org.bukkit.Location loc)
public static void playPlantbendingSound(org.bukkit.Location loc)
public static void playWaterbendingSound(org.bukkit.Location loc)
public static void removeWaterSpouts(org.bukkit.Location loc, double radius, org.bukkit.entity.Player source)
loc
- The location to useradius
- The radius around the location to remove spouts insource
- The player causing the removalpublic static void removeWaterSpouts(org.bukkit.Location loc, org.bukkit.entity.Player source)
loc
- The location to usesource
- The player causing the removalpublic static void stopBending()