Constructs new CustomCause object by given name, automatically registering new damage source in native, and a numeric ID, which will remain the same in the current modpack.
Numeric ID of the damage source, which is automatically generated when creating a new CustomCause. This ID is generated once and remains the same in the modpack you're currently in.
Name of the damage source, which you had specified in CustomCause's constructor.
Specifies death message for the following damage source. In this overload, the given message is set as the English localization, which will be used by default if you don't add translations to other languages.
reference to itself to be used in sequential calls
Specifies death message for the following damage source.
object with language codes as keys and translations of the death message to the corresponding language as values
reference to itself to be used in sequential calls
Specifies dynamic death message depending on the circumstances of the entity damage event, for the following damage source.
function that must return manually generated death message that will be sent in the chat
reference to itself to be used in sequential calls
Specifies that the following damage source is of fire type.
reference to itself to be used in sequential calls
Generated using TypeDoc
Class used to register a custom entity damage source and specify a static or dynamic death message for it.
3.0