public class ProjectileHitEvent extends EntityEvent
Event.Result
entity
构造器和说明 |
---|
ProjectileHitEvent(Projectile projectile) |
ProjectileHitEvent(Projectile projectile,
Block hitBlock) |
ProjectileHitEvent(Projectile projectile,
Entity hitEntity) |
ProjectileHitEvent(Projectile projectile,
Entity hitEntity,
Block hitBlock) |
限定符和类型 | 方法和说明 |
---|---|
Projectile |
getEntity()
返回这个事件所涉及的实体.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Block |
getHitBlock()
Gets the block that was hit, if it was a block that was hit.
|
Entity |
getHitEntity()
Gets the entity that was hit, if it was an entity that was hit.
|
getEntityType
getEventName, isAsynchronous
public ProjectileHitEvent(Projectile projectile)
public ProjectileHitEvent(Projectile projectile, Entity hitEntity)
public ProjectileHitEvent(Projectile projectile, Block hitBlock)
public ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock)
public Projectile getEntity()
EntityEvent
原文: Returns the Entity involved in this event
getEntity
在类中 EntityEvent
public Block getHitBlock()
public Entity getHitEntity()
public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()