of
@Contract(value = "_, _ -> new", pure = true )
Creates a new damage source with the given type, where the damage originated from the given entity.
Return
a new entity damage source
Parameters
type
the type of damage the source will cause
entity
the source of the damage