Record Class ScreenNarrationCollector.EntryKey
java.lang.Object
java.lang.Record
net.minecraft.client.gui.narration.ScreenNarrationCollector.EntryKey
- Enclosing class:
ScreenNarrationCollector
private static record ScreenNarrationCollector.EntryKey(NarratedElementType type, int depth)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.private final NarratedElementTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntryKey(NarratedElementType type, int depth) Creates an instance of aEntryKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
depth
private final int depthThe field for thedepthrecord component.
-
-
Constructor Details
-
EntryKey
Creates an instance of aEntryKeyrecord class.- Parameters:
type- the value for thetyperecord componentdepth- the value for thedepthrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-