EntityEvents

Types

Link copied to clipboard
open class EntityCheckInvulnerabilityEvent(entity: Entity, val source: DamageSource, val isInvulnerable: EventScopeProperty<Boolean>) : EntityEvents.EntityEvent<Entity>
Link copied to clipboard
open class EntityDamageEvent(entity: LivingEntity, val amount: Float, val source: DamageSource) : EntityEvents.EntityEvent<LivingEntity>
Link copied to clipboard
open class EntityEvent<T : Entity>(val entity: T)

Properties

Link copied to clipboard

Called when a regular invulnerability check is being performed. This event allows listeners to modify the result of that check.

Link copied to clipboard

Called when a LivingEntity is being hurt. When this event occurs, at least one invulnerability check has already passed.