Package kr.toxicity.model.api.event
Interface ModelDamageSource
public interface ModelDamageSource
A damage source of hit-box
-
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.entity.EntityGets causing entity@Nullable org.bukkit.LocationGets damage location@Nullable org.bukkit.entity.EntityGets direct likefloatGets food exhaustion@Nullable org.bukkit.LocationGets source locationbooleanChecks causing entity is not equals with direct entitybooleanChecks this damage should be scaled by difficulty
-
Method Details
-
getCausingEntity
@Nullable @Nullable org.bukkit.entity.Entity getCausingEntity()Gets causing entity- Returns:
- causing entity
- See Also:
-
getDirectEntity
@Nullable @Nullable org.bukkit.entity.Entity getDirectEntity()Gets direct like- Returns:
- direct entity
- See Also:
-
getDamageLocation
@Nullable @Nullable org.bukkit.Location getDamageLocation()Gets damage location- Returns:
- damage location
-
getSourceLocation
@Nullable @Nullable org.bukkit.Location getSourceLocation()Gets source location- Returns:
- source location
-
isIndirect
boolean isIndirect()Checks causing entity is not equals with direct entity- Returns:
- is indirect
-
getFoodExhaustion
float getFoodExhaustion()Gets food exhaustion- Returns:
- food exhaustion
-
scalesWithDifficulty
boolean scalesWithDifficulty()Checks this damage should be scaled by difficulty- Returns:
- should be scaled
-