Class PlayerKill

java.lang.Object
com.djrapitops.plan.gathering.domain.PlayerKill
All Implemented Interfaces:
DateHolder

public class PlayerKill extends Object implements DateHolder
Represents a player vs player kill.
  • Constructor Details

  • Method Details

    • getKillerUUID

      @Deprecated public UUID getKillerUUID()
      Deprecated.
    • getVictimUUID

      @Deprecated public UUID getVictimUUID()
      Deprecated.
    • getVictimName

      @Deprecated public Optional<String> getVictimName()
      Deprecated.
    • getKillerName

      @Deprecated public Optional<String> getKillerName()
      Deprecated.
    • getKiller

      public PlayerKill.Killer getKiller()
    • getVictim

      public PlayerKill.Victim getVictim()
    • getServer

      public ServerIdentifier getServer()
    • getDate

      public long getDate()
      Description copied from interface: DateHolder
      Get the date the object holds.
      Specified by:
      getDate in interface DateHolder
      Returns:
      Epoch ms - milliseconds passed since January 1st 1970.
    • getWeapon

      public String getWeapon()
      Get the Weapon used as string.
      Returns:
      For example DIAMOND_SWORD
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isSelfKill

      public boolean isSelfKill()
    • isNotSelfKill

      public boolean isNotSelfKill()
    • toJson

      public String toJson()