public class ProjectileHitEvent extends EntityEvent
Event.Resultentity| 构造器和说明 |
|---|
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.
|
getEntityTypegetEventName, 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 Projectile getEntity()
EntityEvent原文: Returns the Entity involved in this event
getEntity 在类中 EntityEventpublic Block getHitBlock()
public Entity getHitEntity()
public HandlerList getHandlers()
getHandlers 在类中 Eventpublic static HandlerList getHandlerList()