Package net.minecraft.client.quickplay
Record Class QuickPlayLog.QuickPlayEntry
java.lang.Object
java.lang.Record
net.minecraft.client.quickplay.QuickPlayLog.QuickPlayEntry
- Enclosing class:
- QuickPlayLog
static record QuickPlayLog.QuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<QuickPlayLog.QuickPlayEntry>private final GameTypeThe field for thegamemoderecord component.private final InstantThe field for thelastPlayedTimerecord component.private final QuickPlayLog.QuickPlayWorldThe field for thequickPlayWorldrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionQuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode) Creates an instance of aQuickPlayEntryrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gamemode()Returns the value of thegamemoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastPlayedTimerecord component.Returns the value of thequickPlayWorldrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
quickPlayWorldThe field for thequickPlayWorldrecord component.
- 
lastPlayedTimeThe field for thelastPlayedTimerecord component.
- 
gamemodeThe field for thegamemoderecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
QuickPlayEntryQuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode) Creates an instance of aQuickPlayEntryrecord class.- Parameters:
- quickPlayWorld- the value for the- quickPlayWorldrecord component
- lastPlayedTime- the value for the- lastPlayedTimerecord component
- gamemode- the value for the- gamemoderecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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).
- 
quickPlayWorldReturns the value of thequickPlayWorldrecord component.- Returns:
- the value of the quickPlayWorldrecord component
 
- 
lastPlayedTimeReturns the value of thelastPlayedTimerecord component.- Returns:
- the value of the lastPlayedTimerecord component
 
- 
gamemodeReturns the value of thegamemoderecord component.- Returns:
- the value of the gamemoderecord component
 
 
-