Damage Cause
An enum to specify the cause of the damage
Entries
Damage caused when an entity attacks another entity.
Damage caused when attacked by getClassById projectile.
Damage caused by being put in getClassById block
Damage caused by being in the area when getClassById block explodes.
Damage caused by being in the area when an entity, such as getClassById Creeper, explodes.
Damage caused by starving due to having an empty hunger bar
Damage caused by being hit by getClassById falling block which deals damage
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.