Record Class DeathsFeedRecord
java.lang.Object
java.lang.Record
com.zenith.database.dto.records.DeathsFeedRecord
-
Constructor Summary
ConstructorsConstructorDescriptionDeathsFeedRecord(OffsetDateTime time, String deathMessage, String victimPlayerName, UUID victimPlayerUuid, String killerPlayerName, UUID killerPlayerUuid, String weaponName, String killerMob, String component) Creates an instance of aDeathsFeedRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.Returns the value of thedeathMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekillerMobrecord component.Returns the value of thekillerPlayerNamerecord component.Returns the value of thekillerPlayerUuidrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevictimPlayerNamerecord component.Returns the value of thevictimPlayerUuidrecord component.Returns the value of theweaponNamerecord component.
-
Constructor Details
-
DeathsFeedRecord
public DeathsFeedRecord(OffsetDateTime time, String deathMessage, String victimPlayerName, UUID victimPlayerUuid, String killerPlayerName, UUID killerPlayerUuid, String weaponName, String killerMob, String component) Creates an instance of aDeathsFeedRecordrecord class.- Parameters:
time- the value for thetimerecord componentdeathMessage- the value for thedeathMessagerecord componentvictimPlayerName- the value for thevictimPlayerNamerecord componentvictimPlayerUuid- the value for thevictimPlayerUuidrecord componentkillerPlayerName- the value for thekillerPlayerNamerecord componentkillerPlayerUuid- the value for thekillerPlayerUuidrecord componentweaponName- the value for theweaponNamerecord componentkillerMob- the value for thekillerMobrecord componentcomponent- the value for thecomponentrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
deathMessage
Returns the value of thedeathMessagerecord component.- Returns:
- the value of the
deathMessagerecord component
-
victimPlayerName
Returns the value of thevictimPlayerNamerecord component.- Returns:
- the value of the
victimPlayerNamerecord component
-
victimPlayerUuid
Returns the value of thevictimPlayerUuidrecord component.- Returns:
- the value of the
victimPlayerUuidrecord component
-
killerPlayerName
Returns the value of thekillerPlayerNamerecord component.- Returns:
- the value of the
killerPlayerNamerecord component
-
killerPlayerUuid
Returns the value of thekillerPlayerUuidrecord component.- Returns:
- the value of the
killerPlayerUuidrecord component
-
weaponName
Returns the value of theweaponNamerecord component.- Returns:
- the value of the
weaponNamerecord component
-
killerMob
Returns the value of thekillerMobrecord component.- Returns:
- the value of the
killerMobrecord component
-
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-