public abstract class EarthAbility extends ElementalAbility
Constructor and Description |
---|
EarthAbility(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static void |
addTempAirBlock(org.bukkit.block.Block block)
Creates a temporary air block.
|
static void |
displaySandParticle(org.bukkit.Location loc,
float xOffset,
float yOffset,
float zOffset,
float amount,
float speed,
boolean red) |
int |
getEarthbendableBlocksLength(org.bukkit.block.Block block,
org.bukkit.util.Vector direction,
int maxlength) |
org.bukkit.block.Block |
getEarthSourceBlock(double range) |
static org.bukkit.block.Block |
getEarthSourceBlock(org.bukkit.entity.Player player,
java.lang.String abilityName,
double range)
Finds a valid Earth source for a Player.
|
Element |
getElement()
Specifies the Element used to represent this type of ability, favoring
SubElements over Elements.
|
org.bukkit.block.Block |
getLavaSourceBlock(double range) |
static org.bukkit.block.Block |
getLavaSourceBlock(org.bukkit.entity.Player player,
double range) |
static org.bukkit.block.Block |
getLavaSourceBlock(org.bukkit.entity.Player player,
java.lang.String abilityName,
double range)
Finds a valid Lava source for a Player.
|
static double |
getMetalAugment(double value) |
static java.util.Map<org.bukkit.block.Block,Information> |
getMovedEarth() |
static org.bukkit.block.Block |
getNearbyEarthBlock(org.bukkit.Location loc,
double radius,
int maxVertical)
Attempts to find the closest earth block near a given location.
|
static java.util.HashSet<org.bukkit.block.Block> |
getPreventEarthbendingBlocks() |
static java.util.ArrayList<org.bukkit.block.Block> |
getPreventPhysicsBlocks() |
static org.bukkit.ChatColor |
getSubChatColor() |
org.bukkit.block.Block |
getTargetEarthBlock(int range) |
static org.bukkit.block.Block |
getTargetEarthBlock(org.bukkit.entity.Player player,
int range) |
static java.util.Map<java.lang.Integer,Information> |
getTempAirLocations() |
boolean |
isEarthbendable(org.bukkit.block.Block block) |
static boolean |
isEarthbendable(org.bukkit.Material material) |
static boolean |
isEarthbendable(org.bukkit.entity.Player player,
org.bukkit.block.Block block) |
static boolean |
isEarthbendable(org.bukkit.entity.Player player,
java.lang.String abilityName,
org.bukkit.block.Block block) |
static boolean |
isEarthRevertOn() |
boolean |
isExplosiveAbility()
Determines if this ability can cause explosions.
|
boolean |
isIgniteAbility()
Determines if this ability can ignite blocks.
|
boolean |
isLavabendable(org.bukkit.block.Block block) |
static boolean |
isLavabendable(org.bukkit.entity.Player player,
org.bukkit.block.Block block) |
boolean |
isMetalbendable(org.bukkit.block.Block block) |
boolean |
isMetalbendable(org.bukkit.Material material) |
static boolean |
isMetalbendable(org.bukkit.entity.Player player,
org.bukkit.Material material) |
boolean |
isSandbendable(org.bukkit.block.Block block) |
boolean |
isSandbendable(org.bukkit.Material material) |
static boolean |
isSandbendable(org.bukkit.entity.Player player,
org.bukkit.Material material) |
void |
moveEarth(org.bukkit.block.Block block,
org.bukkit.util.Vector direction,
int chainlength) |
boolean |
moveEarth(org.bukkit.block.Block block,
org.bukkit.util.Vector direction,
int chainlength,
boolean throwplayer) |
void |
moveEarth(org.bukkit.Location location,
org.bukkit.util.Vector direction,
int chainlength) |
void |
moveEarth(org.bukkit.Location location,
org.bukkit.util.Vector direction,
int chainlength,
boolean throwplayer) |
static void |
moveEarthBlock(org.bukkit.block.Block source,
org.bukkit.block.Block target) |
static void |
playEarthbendingSound(org.bukkit.Location loc) |
static void |
playMetalbendingSound(org.bukkit.Location loc) |
static void |
playSandBendingSound(org.bukkit.Location loc) |
static void |
removeAllEarthbendedBlocks() |
static void |
removeRevertIndex(org.bukkit.block.Block block) |
static void |
removeSandSpouts(org.bukkit.Location loc,
double radius,
org.bukkit.entity.Player source) |
static void |
removeSandSpouts(org.bukkit.Location loc,
org.bukkit.entity.Player source) |
static void |
revertAirBlock(int i) |
static void |
revertAirBlock(int i,
boolean force) |
static boolean |
revertBlock(org.bukkit.block.Block block) |
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, 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, remove, removeAll, start
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCooldown, getLocation, getName, isHarmlessAbility, isSneakAbility, progress
public int getEarthbendableBlocksLength(org.bukkit.block.Block block, org.bukkit.util.Vector direction, int maxlength)
public org.bukkit.block.Block getEarthSourceBlock(double range)
public Element getElement()
Ability
Element.LIGHTNING
instead of Element.FIRE
.Element.SubElement.getParentElement()
public org.bukkit.block.Block getLavaSourceBlock(double range)
public org.bukkit.block.Block getTargetEarthBlock(int range)
public boolean isExplosiveAbility()
Ability
FireBlastCharged
public boolean isIgniteAbility()
Ability
public static boolean isEarthbendable(org.bukkit.Material material)
public boolean isEarthbendable(org.bukkit.block.Block block)
public static boolean isEarthbendable(org.bukkit.entity.Player player, org.bukkit.block.Block block)
public boolean isLavabendable(org.bukkit.block.Block block)
public boolean isMetalbendable(org.bukkit.block.Block block)
public boolean isMetalbendable(org.bukkit.Material material)
public boolean isSandbendable(org.bukkit.block.Block block)
public boolean isSandbendable(org.bukkit.Material material)
public void moveEarth(org.bukkit.block.Block block, org.bukkit.util.Vector direction, int chainlength)
public boolean moveEarth(org.bukkit.block.Block block, org.bukkit.util.Vector direction, int chainlength, boolean throwplayer)
public void moveEarth(org.bukkit.Location location, org.bukkit.util.Vector direction, int chainlength)
public void moveEarth(org.bukkit.Location location, org.bukkit.util.Vector direction, int chainlength, boolean throwplayer)
public static void addTempAirBlock(org.bukkit.block.Block block)
block
- The block to use as a basepublic static void displaySandParticle(org.bukkit.Location loc, float xOffset, float yOffset, float zOffset, float amount, float speed, boolean red)
public static org.bukkit.block.Block getEarthSourceBlock(org.bukkit.entity.Player player, java.lang.String abilityName, double range)
BlockSource.getEarthSourceBlock(Player, double, com.projectkorra.projectkorra.util.ClickType)
range
- the maximum block selection range.public static org.bukkit.block.Block getLavaSourceBlock(org.bukkit.entity.Player player, double range)
public static org.bukkit.block.Block getLavaSourceBlock(org.bukkit.entity.Player player, java.lang.String abilityName, double range)
BlockSource.getLavaSourceBlock(Player, double, com.projectkorra.projectkorra.util.ClickType)
range
- the maximum block selection range.public static double getMetalAugment(double value)
public static java.util.Map<org.bukkit.block.Block,Information> getMovedEarth()
public static org.bukkit.block.Block getNearbyEarthBlock(org.bukkit.Location loc, double radius, int maxVertical)
loc
- the initial location to search from.radius
- the maximum radius to search for the earth block.maxVertical
- the maximum block height difference between the starting
location and the earth bendable block.public static java.util.HashSet<org.bukkit.block.Block> getPreventEarthbendingBlocks()
public static java.util.ArrayList<org.bukkit.block.Block> getPreventPhysicsBlocks()
public static org.bukkit.ChatColor getSubChatColor()
public static org.bukkit.block.Block getTargetEarthBlock(org.bukkit.entity.Player player, int range)
public static java.util.Map<java.lang.Integer,Information> getTempAirLocations()
public static boolean isEarthbendable(org.bukkit.entity.Player player, java.lang.String abilityName, org.bukkit.block.Block block)
public static boolean isEarthRevertOn()
public static boolean isLavabendable(org.bukkit.entity.Player player, org.bukkit.block.Block block)
public static boolean isMetalbendable(org.bukkit.entity.Player player, org.bukkit.Material material)
public static boolean isSandbendable(org.bukkit.entity.Player player, org.bukkit.Material material)
public static void moveEarthBlock(org.bukkit.block.Block source, org.bukkit.block.Block target)
public static void playEarthbendingSound(org.bukkit.Location loc)
public static void playMetalbendingSound(org.bukkit.Location loc)
public static void playSandBendingSound(org.bukkit.Location loc)
public static void removeAllEarthbendedBlocks()
public static void removeRevertIndex(org.bukkit.block.Block block)
public static void revertAirBlock(int i)
public static void revertAirBlock(int i, boolean force)
public static boolean revertBlock(org.bukkit.block.Block block)
public static void stopBending()
public static void removeSandSpouts(org.bukkit.Location loc, double radius, org.bukkit.entity.Player source)
public static void removeSandSpouts(org.bukkit.Location loc, org.bukkit.entity.Player source)