public abstract class FireAbility extends ElementalAbility
Constructor and Description |
---|
FireAbility(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canFireGrief()
Returns if fire is allowed to completely replace blocks or if it should
place a temp fire block.
|
static void |
createTempFire(org.bukkit.Location loc)
Creates a fire block meant to replace other blocks but reverts when the
fire dissipates or is destroyed.
|
static double |
getDayFactor() |
double |
getDayFactor(double value) |
static double |
getDayFactor(double value,
org.bukkit.World world)
Gets the firebending dayfactor from the config multiplied by a specific
value if it is day.
|
Element |
getElement()
Specifies the Element used to represent this type of ability, favoring
SubElements over Elements.
|
static org.bukkit.ChatColor |
getSubChatColor() |
boolean |
isExplosiveAbility()
Determines if this ability can cause explosions.
|
static boolean |
isIgnitable(org.bukkit.block.Block block) |
static boolean |
isIgnitable(org.bukkit.Material material) |
boolean |
isIgniteAbility()
Determines if this ability can ignite blocks.
|
static boolean |
isWithinFireShield(org.bukkit.Location loc)
Checks whether a location is within a FireShield.
|
static void |
playCombustionSound(org.bukkit.Location loc) |
static void |
playFirebendingParticles(org.bukkit.Location loc,
int amount,
float xOffset,
float yOffset,
float zOffset) |
static void |
playFirebendingSound(org.bukkit.Location loc) |
static void |
playLightningbendingParticle(org.bukkit.Location loc) |
static void |
playLightningbendingParticle(org.bukkit.Location loc,
float xOffset,
float yOffset,
float zOffset) |
static void |
removeFire()
Removes all temp fire that no longer needs to be there
|
static void |
revertTempFire(org.bukkit.Location location)
Revert the temp fire at the location if any is there.
|
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 boolean isIgniteAbility()
Ability
public boolean isExplosiveAbility()
Ability
FireBlastCharged
public Element getElement()
Ability
Element.LIGHTNING
instead of Element.FIRE
.Element.SubElement.getParentElement()
public double getDayFactor(double value)
public static boolean canFireGrief()
public static void createTempFire(org.bukkit.Location loc)
public static double getDayFactor()
public static double getDayFactor(double value, org.bukkit.World world)
value
- The valueworld
- The world to pass into ElementalAbility.isDay(World)
ElementalAbility.isDay(World)
is true public static org.bukkit.ChatColor getSubChatColor()
public static boolean isIgnitable(org.bukkit.block.Block block)
public static boolean isIgnitable(org.bukkit.Material material)
public static boolean isWithinFireShield(org.bukkit.Location loc)
loc
- The location to checkpublic static void playCombustionSound(org.bukkit.Location loc)
public static void playFirebendingParticles(org.bukkit.Location loc, int amount, float xOffset, float yOffset, float zOffset)
public static void playFirebendingSound(org.bukkit.Location loc)
public static void playLightningbendingParticle(org.bukkit.Location loc)
public static void playLightningbendingParticle(org.bukkit.Location loc, float xOffset, float yOffset, float zOffset)
public static void removeFire()
public static void revertTempFire(org.bukkit.Location location)
location
- The Locationpublic static void stopBending()