EntityEvent(event: EntityDamageEvent) { if event.entity.isType(EntityType.Pig) { event.setCanceled(canceled=true /* <- Default true */); SuperBoom(); } }