Package net.minecraft.client.quickplay
Record Class QuickPlayLog.QuickPlayWorld
java.lang.Object
java.lang.Record
net.minecraft.client.quickplay.QuickPlayLog.QuickPlayWorld
- Enclosing class:
- QuickPlayLog
static record QuickPlayLog.QuickPlayWorld(QuickPlayLog.Type type, String id, String name)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for theidrecord component.static final com.mojang.serialization.MapCodec<QuickPlayLog.QuickPlayWorld>private final StringThe field for thenamerecord component.private final QuickPlayLog.TypeThe field for thetyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionQuickPlayWorld(QuickPlayLog.Type type, String id, String name) Creates an instance of aQuickPlayWorldrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
- 
Field Details- 
typeThe field for thetyperecord component.
- 
idThe field for theidrecord component.
- 
nameThe field for thenamerecord component.
- 
MAP_CODEC
 
- 
- 
Constructor Details- 
QuickPlayWorldQuickPlayWorld(QuickPlayLog.Type type, String id, String name) Creates an instance of aQuickPlayWorldrecord class.- Parameters:
- type- the value for the- typerecord component
- id- the value for the- idrecord component
- name- the value for the- namerecord 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).
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
 
-