Package net.minecraft.block.entity
Record Class TestInstanceBlockEntity.Error
java.lang.Object
java.lang.Record
net.minecraft.block.entity.TestInstanceBlockEntity.Error
- Record Components:
pos-text-
- Enclosing class:
TestInstanceBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/TestInstanceBlockEntity$Errorintermediary net/minecraft/class_10638$class_12034official eie$bnamed posintermediary comp_4876official cnamed textintermediary comp_4877official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TestInstanceBlockEntity.Error> static final com.mojang.serialization.Codec<List<TestInstanceBlockEntity.Error>> private final BlockPosThe field for theposrecord component.private final TextThe field for thetextrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
text
The field for thetextrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/entity/TestInstanceBlockEntity$Error;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62919Lnet/minecraft/class_10638$class_12034;field_62919:Lcom/mojang/serialization/Codec;official aLeie$b;a:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector named LIST_CODECLnet/minecraft/block/entity/TestInstanceBlockEntity$Error;LIST_CODEC:Lcom/mojang/serialization/Codec;intermediary field_62920Lnet/minecraft/class_10638$class_12034;field_62920:Lcom/mojang/serialization/Codec;official bLeie$b;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Error
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-