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 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
ConstructorsConstructorDescriptionQuickPlayEntry(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
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
Returns 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. -
hashCode
public 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. -
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
-