ShockAspectEvent

The Shock Aspect Event is an event called when a player hits another entity with a Shock Aspect weapon.

Description
The ShockAspectEvent is a class that adds two local variables: a chance that gets how likely striking a lightning bolt is, and a location for where the lightning should strike.

Constructor
ShockAspectEvent(LivingEntity damaged, int level, LivingEntity damager, double damage, double newDamage, double chance, Location location)
 * // LivingEntity damaged - the attacked entity
 * // int level - the level of Shock Aspect on the weapon
 * // LivingEntity damager - the attacker
 * // double damage - the original damage of the event
 * // double newDamage - the final damage of the event
 * // double chance - the chance that a lightning bolt has of striking
 * // Location location - the location where the lightning bolt will strike

Implements
None

Extends
ESEntityDamageEntityEvent

double getChance
Gets the chance that lightning has to strike

void setChance(double chance)
Sets the chance that lightning has to strike to the specified value

Location getLocation
Gets the location where lightning will strike

void setLocation(Location location)
Sets the location where lightning will strike to the specified value