Class PlayerKill

  • All Implemented Interfaces:
    DateHolder

    public class PlayerKill
    extends java.lang.Object
    implements DateHolder
    Represents a player vs player kill.
    • Constructor Detail

      • PlayerKill

        @Deprecated
        public PlayerKill​(java.util.UUID killer,
                          java.util.UUID victim,
                          java.lang.String weapon,
                          long date)
        Deprecated.
        Creates a PlayerKill object with given parameters.
        Parameters:
        killer - UUID of the killer.
        victim - UUID of the victim.
        weapon - Weapon used.
        date - Epoch millisecond at which the kill occurred.
      • PlayerKill

        @Deprecated
        public PlayerKill​(java.util.UUID killer,
                          java.util.UUID victim,
                          java.lang.String weapon,
                          long date,
                          java.lang.String victimName)
        Deprecated.
      • PlayerKill

        @Deprecated
        public PlayerKill​(java.util.UUID killer,
                          java.util.UUID victim,
                          java.lang.String weapon,
                          long date,
                          java.lang.String victimName,
                          java.lang.String killerName)
        Deprecated.
    • Method Detail

      • getKillerUUID

        @Deprecated
        public java.util.UUID getKillerUUID()
        Deprecated.
      • getVictimUUID

        @Deprecated
        public java.util.UUID getVictimUUID()
        Deprecated.
      • getVictimName

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

        @Deprecated
        public java.util.Optional<java.lang.String> getKillerName()
        Deprecated.
      • 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 java.lang.String getWeapon()
        Get the Weapon used as string.
        Returns:
        For example DIAMOND_SWORD
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

        public boolean isSelfKill()
      • isNotSelfKill

        public boolean isNotSelfKill()
      • toJson

        public java.lang.String toJson()