Package net.minecraft.storage
Record Class NbtReadView.ExpectedTypeAtIndexError
java.lang.Object
java.lang.Record
net.minecraft.storage.NbtReadView.ExpectedTypeAtIndexError
- Record Components:
name-index-expected-actual-
- All Implemented Interfaces:
ErrorReporter.Error
- Enclosing class:
NbtReadView
public static record NbtReadView.ExpectedTypeAtIndexError(String name, int index, NbtType<?> expected, NbtType<?> actual)
extends Record
implements ErrorReporter.Error
- Mappings:
Namespace Name named net/minecraft/storage/NbtReadView$ExpectedTypeAtIndexErrorintermediary net/minecraft/class_11352$class_11359official fmb$gnamed nameintermediary comp_4251official anamed indexintermediary comp_4252official bnamed expectedintermediary comp_4253official cnamed actualintermediary comp_4254official d
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpectedTypeAtIndexError(String name, int index, NbtType<?> expected, NbtType<?> actual) Creates an instance of aExpectedTypeAtIndexErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionNbtType<?> actual()Returns the value of theactualrecord component.final booleanIndicates whether some other object is "equal to" this one.NbtType<?> expected()Returns the value of theexpectedrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ExpectedTypeAtIndexError
Creates an instance of aExpectedTypeAtIndexErrorrecord class.
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceErrorReporter.Error- Mappings:
Namespace Name Mixin selector named getMessageLnet/minecraft/util/ErrorReporter$Error;getMessage()Ljava/lang/String;intermediary method_71358Lnet/minecraft/class_8942$class_11337;method_71358()Ljava/lang/String;official aLbgi$g;a()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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
expected
Returns the value of theexpectedrecord component.- Returns:
- the value of the
expectedrecord component
-
actual
Returns the value of theactualrecord component.- Returns:
- the value of the
actualrecord component
-