public final class Bloat extends AbstractSpecialAttack
| Constructor and Description |
|---|
Bloat()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkConditions(org.bukkit.event.Event event)
An abstract method to be implemented when a new
AbstractSpecialAttack is created. |
(package private) void |
doAttack(org.bukkit.event.Event event)
A method to implement all of the logic behind the attack, i.e.
|
private void |
doExplosion(org.bukkit.Location loc)
Creates a large but harmless explosion at the given location.
|
private void |
startTimedExplosion(org.bukkit.entity.LivingEntity livingEntity)
Starts the explosion and reinforcement summoning process.
|
private org.bukkit.entity.AreaEffectCloud |
summonCloud(org.bukkit.Location loc,
double duration,
float radius,
org.bukkit.Color color)
Summons an
AreaEffectCloud at the given location with given properties. |
private org.bukkit.entity.AreaEffectCloud |
summonCloud(org.bukkit.Location loc,
double duration,
float radius,
org.bukkit.Color color,
org.bukkit.Particle particle)
Summons an
AreaEffectCloud at the given location with given properties. |
private void |
summonReinforcements(org.bukkit.entity.LivingEntity targetEntity)
Summons reinforcements around the given entity.
|
checkDefaultConditions, getModule, getModules, getName, load, save, setEnabledprotected boolean checkConditions(org.bukkit.event.Event event)
AbstractSpecialAttackAbstractSpecialAttack is created. Offers more
customizability than the standard AbstractSpecialAttack.checkEligibility(Event) method.checkConditions in class AbstractSpecialAttackevent - the event.void doAttack(org.bukkit.event.Event event)
AbstractSpecialAttackdoAttack in class AbstractSpecialAttackevent - the event which triggered the attack.private org.bukkit.entity.AreaEffectCloud summonCloud(org.bukkit.Location loc,
double duration,
float radius,
org.bukkit.Color color)
AreaEffectCloud at the given location with given properties.loc - the location.duration - the duration.radius - the radius.color - the color.AreaEffectCloud.private org.bukkit.entity.AreaEffectCloud summonCloud(org.bukkit.Location loc,
double duration,
float radius,
org.bukkit.Color color,
org.bukkit.Particle particle)
AreaEffectCloud at the given location with given properties.loc - the location.duration - the duration.radius - the radius.color - the color.particle - the particle type.AreaEffectCloud.private void startTimedExplosion(org.bukkit.entity.LivingEntity livingEntity)
livingEntity - the entity doing this attack.private void doExplosion(org.bukkit.Location loc)
loc - the location.private void summonReinforcements(org.bukkit.entity.LivingEntity targetEntity)
targetEntity - the entity doing this attack.