Record Class DebugScreenEntryList.SerializedOptions
java.lang.Object
java.lang.Record
net.minecraft.client.gui.components.debug.DebugScreenEntryList.SerializedOptions
- Enclosing class:
DebugScreenEntryList
static record DebugScreenEntryList.SerializedOptions(Optional<DebugScreenProfile> profile, Optional<Map<Identifier, DebugScreenEntryStatus>> custom)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DebugScreenEntryList.SerializedOptions> private final Optional<Map<Identifier, DebugScreenEntryStatus>> The field for thecustomrecord component.private static final com.mojang.serialization.Codec<Map<Identifier, DebugScreenEntryStatus>> private final Optional<DebugScreenProfile> The field for theprofilerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSerializedOptions(Optional<DebugScreenProfile> profile, Optional<Map<Identifier, DebugScreenEntryStatus>> custom) Creates an instance of aSerializedOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncustom()Returns the value of thecustomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
profile
The field for theprofilerecord component. -
custom
The field for thecustomrecord component. -
CUSTOM_ENTRIES_CODEC
private static final com.mojang.serialization.Codec<Map<Identifier, DebugScreenEntryStatus>> CUSTOM_ENTRIES_CODEC -
CODEC
-
-
Constructor Details
-
SerializedOptions
SerializedOptions(Optional<DebugScreenProfile> profile, Optional<Map<Identifier, DebugScreenEntryStatus>> custom) Creates an instance of aSerializedOptionsrecord class.- Parameters:
profile- the value for theprofilerecord componentcustom- the value for thecustomrecord 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). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
custom
Returns the value of thecustomrecord component.- Returns:
- the value of the
customrecord component
-