com.mineblown.challengescript.scripting.event
Class ScriptNPCHitPlayerEvent

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

public class ScriptNPCHitPlayerEvent
extends ScriptCancellableEvent


Constructor Summary
ScriptNPCHitPlayerEvent(ScriptNPC inNPC, ScriptPlayer inPlayer, int inDamage)
           
 
Method Summary
 int getDamage()
          Gets the damage dealt to the player
 ScriptNPC getNPC()
          Gets the NPC that has damaged the player
 ScriptPlayer getPlayer()
          Gets the player that has been damaged by the NPC
 void setDamage(int inDamage)
          Sets the damage dealt
 
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

ScriptNPCHitPlayerEvent

public ScriptNPCHitPlayerEvent(ScriptNPC inNPC,
                               ScriptPlayer inPlayer,
                               int inDamage)
Method Detail

getNPC

public ScriptNPC getNPC()
Gets the NPC that has damaged the player

Returns:
damaging NPC

getPlayer

public ScriptPlayer getPlayer()
Gets the player that has been damaged by the NPC

Returns:
damaged player

getDamage

public int getDamage()
Gets the damage dealt to the player

Returns:
damage

setDamage

public void setDamage(int inDamage)
Sets the damage dealt

Parameters:
inDamage - new damage