Record Class ScreenNarrator.PartIndex
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.narration.ScreenNarrator.PartIndex
- Record Components:
part-depth-
- Enclosing class:
ScreenNarrator
@Environment(CLIENT)
private static record ScreenNarrator.PartIndex(NarrationPart part, int depth)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/narration/ScreenNarrator$PartIndexintermediary net/minecraft/class_6385$class_6386official gjo$anamed partintermediary comp_4461official anamed depthintermediary comp_4462official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.private final NarrationPartThe field for thepartrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPartIndex(NarrationPart part, int depth) Creates an instance of aPartIndexrecord 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.part()Returns the value of thepartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
PartIndex
PartIndex(NarrationPart part, int depth) Creates an instance of aPartIndexrecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-