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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<QuickPlayLog.QuickPlayEntry> private final GameType
The field for thegamemode
record component.private final Instant
The field for thelastPlayedTime
record component.private final QuickPlayLog.QuickPlayWorld
The field for thequickPlayWorld
record component. -
Constructor Summary
ConstructorDescriptionQuickPlayEntry
(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode) Creates an instance of aQuickPlayEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.gamemode()
Returns the value of thegamemode
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelastPlayedTime
record component.Returns the value of thequickPlayWorld
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
quickPlayWorld
The field for thequickPlayWorld
record component. -
lastPlayedTime
The field for thelastPlayedTime
record component. -
gamemode
The field for thegamemode
record component. -
CODEC
-
-
Constructor Details
-
QuickPlayEntry
QuickPlayEntry(QuickPlayLog.QuickPlayWorld quickPlayWorld, Instant lastPlayedTime, GameType gamemode) Creates an instance of aQuickPlayEntry
record class.- Parameters:
quickPlayWorld
- the value for thequickPlayWorld
record componentlastPlayedTime
- the value for thelastPlayedTime
record componentgamemode
- the value for thegamemode
record 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 thequickPlayWorld
record component.- Returns:
- the value of the
quickPlayWorld
record component
-
lastPlayedTime
Returns the value of thelastPlayedTime
record component.- Returns:
- the value of the
lastPlayedTime
record component
-
gamemode
Returns the value of thegamemode
record component.- Returns:
- the value of the
gamemode
record component
-