Record Class TestInstanceBlockEntity.ErrorMarker
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.TestInstanceBlockEntity.ErrorMarker
- Enclosing class:
TestInstanceBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TestInstanceBlockEntity.ErrorMarker> static final com.mojang.serialization.Codec<List<TestInstanceBlockEntity.ErrorMarker>> private final BlockPosThe field for theposrecord component.private final ComponentThe field for thetextrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionErrorMarker(BlockPos pos, Component text) Creates an instance of aErrorMarkerrecord class. -
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
-
LIST_CODEC
public static final com.mojang.serialization.Codec<List<TestInstanceBlockEntity.ErrorMarker>> LIST_CODEC
-
-
Constructor Details
-
ErrorMarker
-
-
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. 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
-