com.mineblown.challengescript.scripting.event
Class ScriptPlayerProjectileHitEvent

java.lang.Object
  extended by com.mineblown.challengescript.scripting.event.ScriptPlayerProjectileHitEvent
Direct Known Subclasses:
ScriptPlayerArrowHitBlockEvent, ScriptPlayerArrowHitEntityEvent, ScriptPlayerPotionHitEntityEvent

public class ScriptPlayerProjectileHitEvent
extends java.lang.Object


Constructor Summary
ScriptPlayerProjectileHitEvent(ScriptEntity inEntity, ScriptPlayer inPlayer)
           
 
Method Summary
 ScriptEntity getEntity()
          Gets the entity that has been hit by the projectile from the player
 ScriptPlayer getPlayer()
          Gets the player that shot the projectile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptPlayerProjectileHitEvent

public ScriptPlayerProjectileHitEvent(ScriptEntity inEntity,
                                      ScriptPlayer inPlayer)
Method Detail

getEntity

public ScriptEntity getEntity()
Gets the entity that has been hit by the projectile from the player

Returns:
damaged entity

getPlayer

public ScriptPlayer getPlayer()
Gets the player that shot the projectile

Returns:
Shooter