public class ProjectileHitEvent extends EntityEvent
Event.Result
entity
Constructor and 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 hitFace) |
Modifier and Type | Method and 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 block face that was hit, if it was a block that was hit and the
face was provided in the vent.
|
Entity |
getHitEntity()
Gets the entity that was hit, if it was an entity that was hit.
|
getEntityType
callEvent, getEventName, isAsynchronous
public ProjectileHitEvent(@NotNull Projectile projectile)
public ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity)
public ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Block hitBlock)
public ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock)
public ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace)
@NotNull public Projectile getEntity()
EntityEvent
getEntity
in class EntityEvent
@Nullable public Block getHitBlock()
@Nullable public BlockFace getHitBlockFace()
@Nullable public Entity getHitEntity()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.