-
Nested Class Summary
Nested Classes
-
Method Summary
Gets the valid damage causes of the source.
Gets an array of damagers of the source.
Gets the name of the entity of the source.
Gets the excluded damage causes of the source.
Gets an array of triggers of the source.
boolean
-
Method Details
-
getEntity
@NotNull
@NotNull String getEntity()
Gets the name of the entity of the source.
- Returns:
- The entity name
-
getTriggers
Gets an array of triggers of the source.
- Returns:
- The triggers. If there is only one trigger, it will return an array with one element.
-
getDamagers
Gets an array of damagers of the source. Xp will only be given if the damager matches.
- Returns:
- The damagers. If there is only one damager, it will return an array with one element.
-
scaleXpWithHealth
boolean scaleXpWithHealth()
- Returns:
- whether to scale XP by health
-
getCauses
Gets the valid damage causes of the source.
- Returns:
- The damage causes. If there are no damage causes set (all damage causes valid), it will return null.
-
getExcludedCauses
Gets the excluded damage causes of the source.
- Returns:
- The excluded damage causes, or null if there are none set.