projectile_hit — Events

on projectile_hitorg.bukkit.event.entity.ProjectileHitEvent
Entity1.0.0

Description

Fires when a projectile hits a block or entity.

Variables

entity
Entity
org.bukkit.entity.Entity
NullableNo

The projectile entity

shooter
Player
org.bukkit.entity.Player
NullableYes

The player who shot the projectile, or null if not shot by a player

hit_entity
Entity
org.bukkit.entity.Entity
NullableYes

The entity that was hit, or null if a block was hit

hit_block
Block
org.bukkit.block.Block
NullableYes

The block that was hit, or null if an entity was hit

Examples

on projectile_hit:

Related (Entity)