Interface ModelDamageSource


public interface ModelDamageSource
A damage source of hit-box
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.entity.Entity
    Gets causing entity
    @Nullable org.bukkit.Location
    Gets damage location
    @Nullable org.bukkit.entity.Entity
    Gets direct like
    float
    Gets food exhaustion
    @Nullable org.bukkit.Location
    Gets source location
    boolean
    Checks causing entity is not equals with direct entity
    boolean
    Checks 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:
      • LivingEntity
    • getDirectEntity

      @Nullable @Nullable org.bukkit.entity.Entity getDirectEntity()
      Gets direct like
      Returns:
      direct entity
      See Also:
      • Projectile
    • 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