ExpBottleEvent, LingeringPotionSplashEvent, PotionSplashEventpublic class ProjectileHitEvent extends EntityEvent
Event.Resultentity| Constructor | Description | 
|---|---|
| ProjectileHitEvent(Projectile projectile) | |
| ProjectileHitEvent(Projectile projectile,
                  Block hitBlock) | |
| ProjectileHitEvent(Projectile projectile,
                  Entity hitEntity) | |
| ProjectileHitEvent(Projectile projectile,
                  Entity hitEntity,
                  Block hitBlock) | |
| ProjectileHitEvent(Projectile projectile,
                  Entity hitEntity,
                  Block hitBlock,
                  BlockFace hitBlockFace) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Projectile | getEntity() | Returns the Entity involved in this event | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| Block | getHitBlock() | Gets the block that was hit, if it was a block that was hit. | 
| BlockFace | getHitBlockFace() | Gets the face of the block that the projectile has hit. | 
| Entity | getHitEntity() | Gets the entity that was hit, if it was an entity that was hit. | 
getEntityTypecallEvent, getEventName, isAsynchronouspublic ProjectileHitEvent(Projectile projectile)
public ProjectileHitEvent(Projectile projectile, Entity hitEntity)
public ProjectileHitEvent(Projectile projectile, Block hitBlock)
public ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock)
public ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock, BlockFace hitBlockFace)
public Projectile getEntity()
EntityEventgetEntity in class EntityEventpublic Block getHitBlock()
public BlockFace getHitBlockFace()
public Entity getHitEntity()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.