of
@Contract(value = "_, _, _ -> new", pure = true )
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.
Return
a new indirect entity damage source
Parameters
type
the type of damage the source will inflict
entity
the entity that directly caused the damage
indirect Entity
the entity that indirectly caused the damage