Package net.minecraft.block.entity
Record Class TestInstanceBlockEntity.Data
java.lang.Object
java.lang.Record
net.minecraft.block.entity.TestInstanceBlockEntity.Data
- Record Components:
test-size-rotation-ignoreEntities-status-errorMessage-
- Enclosing class:
TestInstanceBlockEntity
public static record TestInstanceBlockEntity.Data(Optional<RegistryKey<TestInstance>> test, Vec3i size, BlockRotation rotation, boolean ignoreEntities, TestInstanceBlockEntity.Status status, Optional<Text> errorMessage)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/entity/TestInstanceBlockEntity$Dataintermediary net/minecraft/class_10638$class_10639official eaj$anamed testintermediary comp_3526official cnamed sizeintermediary comp_3527official dnamed rotationintermediary comp_3528official enamed ignoreEntitiesintermediary comp_3529official fnamed statusintermediary comp_3530official gnamed errorMessageintermediary comp_3531official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TestInstanceBlockEntity.Data> The field for theerrorMessagerecord component.private final booleanThe field for theignoreEntitiesrecord component.static final PacketCodec<RegistryByteBuf, TestInstanceBlockEntity.Data> private final BlockRotationThe field for therotationrecord component.private final Vec3iThe field for thesizerecord component.private final TestInstanceBlockEntity.StatusThe field for thestatusrecord component.private final Optional<RegistryKey<TestInstance>> The field for thetestrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionData(Optional<RegistryKey<TestInstance>> optional, Vec3i vec3i, BlockRotation blockRotation, boolean bool, TestInstanceBlockEntity.Status status, Optional<Text> optional2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreEntitiesrecord component.rotation()Returns the value of therotationrecord component.size()Returns the value of thesizerecord component.status()Returns the value of thestatusrecord component.test()Returns the value of thetestrecord component.final StringtoString()Returns a string representation of this record class.withErrorMessage(Text errorMessage)
-
Field Details
-
test
The field for thetestrecord component. -
size
The field for thesizerecord component. -
rotation
The field for therotationrecord component. -
ignoreEntities
private final boolean ignoreEntitiesThe field for theignoreEntitiesrecord component. -
status
The field for thestatusrecord component. -
errorMessage
The field for theerrorMessagerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/entity/TestInstanceBlockEntity$Data;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56012Lnet/minecraft/class_10638$class_10639;field_56012:Lcom/mojang/serialization/Codec;official aLeaj$a;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/block/entity/TestInstanceBlockEntity$Data;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_56013Lnet/minecraft/class_10638$class_10639;field_56013:Lnet/minecraft/class_9139;official bLeaj$a;b:Lze;
-
-
Constructor Details
-
Data
public Data(Optional<RegistryKey<TestInstance>> optional, Vec3i vec3i, BlockRotation blockRotation, boolean bool, TestInstanceBlockEntity.Status status, Optional<Text> optional2)
-
-
Method Details
-
withSize
- Mappings:
Namespace Name Mixin selector named withSizeLnet/minecraft/block/entity/TestInstanceBlockEntity$Data;withSize(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;intermediary method_66775Lnet/minecraft/class_10638$class_10639;method_66775(Lnet/minecraft/class_2382;)Lnet/minecraft/class_10638$class_10639;official aLeaj$a;a(Lkb;)Leaj$a;
-
withStatus
- Mappings:
Namespace Name Mixin selector named withStatusLnet/minecraft/block/entity/TestInstanceBlockEntity$Data;withStatus(Lnet/minecraft/block/entity/TestInstanceBlockEntity$Status;)Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;intermediary method_66774Lnet/minecraft/class_10638$class_10639;method_66774(Lnet/minecraft/class_10638$class_10640;)Lnet/minecraft/class_10638$class_10639;official aLeaj$a;a(Leaj$b;)Leaj$a;
-
withErrorMessage
- Mappings:
Namespace Name Mixin selector named withErrorMessageLnet/minecraft/block/entity/TestInstanceBlockEntity$Data;withErrorMessage(Lnet/minecraft/text/Text;)Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;intermediary method_66776Lnet/minecraft/class_10638$class_10639;method_66776(Lnet/minecraft/class_2561;)Lnet/minecraft/class_10638$class_10639;official aLeaj$a;a(Lxg;)Leaj$a;
-
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 '=='. -
test
Returns the value of thetestrecord component.- Returns:
- the value of the
testrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
ignoreEntities
public boolean ignoreEntities()Returns the value of theignoreEntitiesrecord component.- Returns:
- the value of the
ignoreEntitiesrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-