public class ProjectileHitEvent extends EntityEvent
Event.Result
entity
Constructor and Description |
---|
ProjectileHitEvent(Projectile projectile) |
ProjectileHitEvent(Projectile projectile,
Entity hitEntity) |
Modifier and Type | Method and Description |
---|---|
Projectile |
getEntity()
Returns the Entity involved in this event
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Entity |
getHitEntity()
Gets the entity that was hit by the projectile.
|
getEntityType
callEvent, getEventName, isAsynchronous
public ProjectileHitEvent(Projectile projectile)
public ProjectileHitEvent(Projectile projectile, @Nullable Entity hitEntity)
public Projectile getEntity()
EntityEvent
getEntity
in class EntityEvent
@Nullable public Entity getHitEntity()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.