Companion

object Companion

Functions

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

Creates a new damage source that causes the given type of damage, and that is caused directly by the given entity, and indirectly by the given indirectEntity.