Record Class QuickPlayLog.QuickPlayEntry
java.lang.Object
java.lang.Record
net.minecraft.client.quickplay.QuickPlayLog.QuickPlayEntry
- Enclosing class:
QuickPlayLog
private static record QuickPlayLog.QuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode)
extends Record
-
Field Summary
FieldsModifier 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 Summary
ConstructorsModifierConstructorDescriptionprivateQuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode) Creates an instance of aQuickPlayEntryrecord class. -
Method Summary
Modifier 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
-
quickPlayWorld
The field for thequickPlayWorldrecord component. -
lastPlayedTime
The field for thelastPlayedTimerecord component. -
gamemode
The field for thegamemoderecord component. -
CODEC
-
-
Constructor Details
-
QuickPlayEntry
private QuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode) Creates an instance of aQuickPlayEntryrecord class.- Parameters:
quickPlayWorld- the value for thequickPlayWorldrecord componentlastPlayedTime- the value for thelastPlayedTimerecord componentgamemode- the value for thegamemoderecord 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). -
quickPlayWorld
Returns the value of thequickPlayWorldrecord component.- Returns:
- the value of the
quickPlayWorldrecord component
-
lastPlayedTime
Returns the value of thelastPlayedTimerecord component.- Returns:
- the value of the
lastPlayedTimerecord component
-
gamemode
Returns the value of thegamemoderecord component.- Returns:
- the value of the
gamemoderecord component
-