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) -
Method Summary
-
Constructor Details
-
PlayerKill
public PlayerKill(PlayerKill.Killer killer, PlayerKill.Victim victim, ServerIdentifier server, String weapon, long date)
-
-
Method Details
-
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
-