java.lang.Object
ml.karmaconfigs.api.bukkit.region.event.death.Forensics

public final class Forensics extends Object
Karma forensics for region API
  • Constructor Summary

    Constructors
    Constructor
    Description
    Forensics​(org.bukkit.entity.Entity k, org.bukkit.block.Block b, org.bukkit.event.entity.EntityDamageEvent.DamageCause c, double d)
    Initialize the forensics
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.event.entity.EntityDamageEvent.DamageCause
    Get the death info cause
    double
    Get the last damage caused to the main entity
    @Nullable org.bukkit.entity.Entity
    Get the entity who killed the main entity
    @Nullable org.bukkit.block.Block
    Get the physical reason of the main entity death

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Forensics

      public Forensics(org.bukkit.entity.Entity k, org.bukkit.block.Block b, org.bukkit.event.entity.EntityDamageEvent.DamageCause c, double d)
      Initialize the forensics
      Parameters:
      k - the killer
      b - another killer reason
      c - the damage cause
      d - the damage amount
  • Method Details

    • getKiller

      @Nullable public @Nullable org.bukkit.entity.Entity getKiller()
      Get the entity who killed the main entity
      Returns:
      the entity killer
    • getPhysical

      @Nullable public @Nullable org.bukkit.block.Block getPhysical()
      Get the physical reason of the main entity death
      Returns:
      the entity block death
    • getCause

      @NotNull public org.bukkit.event.entity.EntityDamageEvent.DamageCause getCause()
      Get the death info cause
      Returns:
      the death info cause
    • getDamage

      public double getDamage()
      Get the last damage caused to the main entity
      Returns:
      the last damage caused to the entity