com.mineblown.challengescript.scripting.event
Class ScriptArrowHitPlayerEvent

java.lang.Object
  extended by com.mineblown.challengescript.scripting.event.ScriptCancellableEvent
      extended by com.mineblown.challengescript.scripting.event.ScriptArrowHitPlayerEvent

public class ScriptArrowHitPlayerEvent
extends ScriptCancellableEvent


Constructor Summary
ScriptArrowHitPlayerEvent(int inDamage, ScriptArrow inArrow, ScriptEntity inShooter, ScriptPlayer inPlayer)
           
 
Method Summary
 ScriptArrow getArrow()
          Gets the arrow that the player has been shot with
 int getDamage()
          Gets the damage dealt by the arrow
 ScriptPlayer getPlayer()
          Gets the player that has been hit by the arrow
 ScriptEntity getShooter()
          Gets the shooter of the arrow
 void setDamage(int inDamage)
          Sets the damage dealt by the arrow
 
Methods inherited from class com.mineblown.challengescript.scripting.event.ScriptCancellableEvent
isCancelled, setCancelled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptArrowHitPlayerEvent

public ScriptArrowHitPlayerEvent(int inDamage,
                                 ScriptArrow inArrow,
                                 ScriptEntity inShooter,
                                 ScriptPlayer inPlayer)
Method Detail

getDamage

public int getDamage()
Gets the damage dealt by the arrow

Returns:
Damage dealt

setDamage

public void setDamage(int inDamage)
Sets the damage dealt by the arrow

Parameters:
inDamage - new damage amount

getArrow

public ScriptArrow getArrow()
Gets the arrow that the player has been shot with

Returns:
Arrow

getShooter

public ScriptEntity getShooter()
Gets the shooter of the arrow

Returns:
Shooter

getPlayer

public ScriptPlayer getPlayer()
Gets the player that has been hit by the arrow

Returns:
damaged player