Class Forensics
java.lang.Object
ml.karmaconfigs.api.bukkit.region.event.death.Forensics
Karma forensics for region
API
-
Constructor Summary
ConstructorsConstructorDescriptionForensics(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 TypeMethodDescriptionorg.bukkit.event.entity.EntityDamageEvent.DamageCausegetCause()Get the death info causedoubleGet the last damage caused to the main entity@Nullable org.bukkit.entity.EntityGet the entity who killed the main entity@Nullable org.bukkit.block.BlockGet the physical reason of the main entity death
-
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 killerb- another killer reasonc- the damage caused- 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
-