Companion

object Companion

Functions

Link copied to clipboard
@Contract(value = "_, _ -> new", pure = true)
fun of(type: DamageType, entity: Entity): EntityDamageSource

Creates a new damage source with the given type, where the damage originated from the given entity.