Package net.minecraft.util
Record Class ErrorReporter.NamedListElementContext
java.lang.Object
java.lang.Record
net.minecraft.util.ErrorReporter.NamedListElementContext
- Record Components:
key-index-
- All Implemented Interfaces:
ErrorReporter.Context
- Enclosing interface:
ErrorReporter
public static record ErrorReporter.NamedListElementContext(String key, int index)
extends Record
implements ErrorReporter.Context
- Mappings:
Namespace Name named net/minecraft/util/ErrorReporter$NamedListElementContextintermediary net/minecraft/class_8942$class_11334official bfp$dnamed keyintermediary comp_4206official anamed indexintermediary comp_4207official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getName()final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
NamedListElementContext
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceErrorReporter.Context- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/ErrorReporter$Context;getName()Ljava/lang/String;intermediary getLnet/minecraft/class_8942$class_11336;get()Ljava/lang/String;official getLbfp$f;get()Ljava/lang/String;
-
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-