Class PlayerKill
java.lang.Object
com.djrapitops.plan.gathering.domain.PlayerKill
- All Implemented Interfaces:
DateHolder
Represents a player vs player kill.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPlayerKill(PlayerKill.Killer killer, PlayerKill.Victim victim, ServerIdentifier server, String weapon, long date)
PlayerKill(UUID killer, UUID victim, String weapon, long date)
Deprecated.PlayerKill(UUID killer, UUID victim, String weapon, long date, String victimName)
Deprecated.PlayerKill(UUID killer, UUID victim, String weapon, long date, String victimName, String killerName)
Deprecated. -
Method Summary
-
Constructor Details
-
PlayerKill
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(UUID killer, UUID victim, String weapon, long date, String victimName)Deprecated. -
PlayerKill
@Deprecated public PlayerKill(UUID killer, UUID victim, String weapon, long date, String victimName, String killerName)Deprecated. -
PlayerKill
public PlayerKill(PlayerKill.Killer killer, PlayerKill.Victim victim, ServerIdentifier server, String weapon, long date)
-
-
Method Details
-
getKillerUUID
Deprecated. -
getVictimUUID
Deprecated. -
getVictimName
Deprecated. -
getKillerName
Deprecated. -
getKiller
-
getVictim
-
getServer
-
getDate
public long getDate()Description copied from interface:DateHolder
Get the date the object holds.- Specified by:
getDate
in interfaceDateHolder
- Returns:
- Epoch ms - milliseconds passed since January 1st 1970.
-
getWeapon
Get the Weapon used as string.- Returns:
- For example DIAMOND_SWORD
-
equals
-
hashCode
public int hashCode() -
toString
-
isSelfKill
public boolean isSelfKill() -
isNotSelfKill
public boolean isNotSelfKill() -
toJson
-