类 ProjectileHitEvent

直接已知子类:
ExpBottleEvent, LingeringPotionSplashEvent, PotionSplashEvent

public class ProjectileHitEvent extends EntityEvent
Called when a projectile hits an object
  • 构造器详细资料

    • ProjectileHitEvent

      public ProjectileHitEvent(Projectile projectile)
    • ProjectileHitEvent

      public ProjectileHitEvent(Projectile projectile, Entity hitEntity)
    • ProjectileHitEvent

      public ProjectileHitEvent(Projectile projectile, Block hitBlock)
    • ProjectileHitEvent

      public ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock)
  • 方法详细资料

    • getEntity

      public Projectile getEntity()
      从类复制的说明: EntityEvent
      返回这个事件所涉及的实体.

      原文: Returns the Entity involved in this event

      覆盖:
      getEntity 在类中 EntityEvent
      返回:
      涉及这个事件的实体
    • getHitBlock

      public Block getHitBlock()
      Gets the block that was hit, if it was a block that was hit.
      返回:
      hit block or else null
    • getHitEntity

      public Entity getHitEntity()
      Gets the entity that was hit, if it was an entity that was hit.
      返回:
      hit entity or else null
    • getHandlers

      public HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      public static HandlerList getHandlerList()