ModelDamageSource

A damage source of hit-box

Functions

Link copied to clipboard
@Nullable
abstract fun getCausingEntity(): Entity
Gets causing entity
Link copied to clipboard
@Nullable
abstract fun getDamageLocation(): Location
Gets damage location
Link copied to clipboard
@Nullable
abstract fun getDirectEntity(): Entity
Gets direct like
Link copied to clipboard
abstract fun getFoodExhaustion(): Float
Gets food exhaustion
Link copied to clipboard
@Nullable
abstract fun getSourceLocation(): Location
Gets source location
Link copied to clipboard
abstract fun isIndirect(): Boolean
Checks causing entity is not equals with direct entity
Link copied to clipboard
Checks this damage should be scaled by difficulty