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$Data
intermediary net/minecraft/class_10638$class_10639
official ecu$a
named test
intermediary comp_3526
official c
named size
intermediary comp_3527
official d
named rotation
intermediary comp_3528
official e
named ignoreEntities
intermediary comp_3529
official f
named status
intermediary comp_3530
official g
named errorMessage
intermediary comp_3531
official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<TestInstanceBlockEntity.Data> The field for theerrorMessage
record component.private final boolean
The field for theignoreEntities
record component.static final PacketCodec
<RegistryByteBuf, TestInstanceBlockEntity.Data> private final BlockRotation
The field for therotation
record component.private final Vec3i
The field for thesize
record component.private final TestInstanceBlockEntity.Status
The field for thestatus
record component.private final Optional
<RegistryKey<TestInstance>> The field for thetest
record 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 boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorMessage
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theignoreEntities
record component.rotation()
Returns the value of therotation
record component.size()
Returns the value of thesize
record component.status()
Returns the value of thestatus
record component.test()
Returns the value of thetest
record component.final String
toString()
Returns a string representation of this record class.withErrorMessage
(Text errorMessage)
-
Field Details
-
test
The field for thetest
record component. -
size
The field for thesize
record component. -
rotation
The field for therotation
record component. -
ignoreEntities
private final boolean ignoreEntitiesThe field for theignoreEntities
record component. -
status
The field for thestatus
record component. -
errorMessage
The field for theerrorMessage
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56012
Lnet/minecraft/class_10638$class_10639;field_56012:Lcom/mojang/serialization/Codec;
official a
Lecu$a;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_56013
Lnet/minecraft/class_10638$class_10639;field_56013:Lnet/minecraft/class_9139;
official b
Lecu$a;b:Lzm;
-
-
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 withSize
Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;withSize(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;
intermediary method_66775
Lnet/minecraft/class_10638$class_10639;method_66775(Lnet/minecraft/class_2382;)Lnet/minecraft/class_10638$class_10639;
official a
Lecu$a;a(Lkg;)Lecu$a;
-
withStatus
- Mappings:
Namespace Name Mixin selector named withStatus
Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;withStatus(Lnet/minecraft/block/entity/TestInstanceBlockEntity$Status;)Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;
intermediary method_66774
Lnet/minecraft/class_10638$class_10639;method_66774(Lnet/minecraft/class_10638$class_10640;)Lnet/minecraft/class_10638$class_10639;
official a
Lecu$a;a(Lecu$b;)Lecu$a;
-
withErrorMessage
- Mappings:
Namespace Name Mixin selector named withErrorMessage
Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;withErrorMessage(Lnet/minecraft/text/Text;)Lnet/minecraft/block/entity/TestInstanceBlockEntity$Data;
intermediary method_66776
Lnet/minecraft/class_10638$class_10639;method_66776(Lnet/minecraft/class_2561;)Lnet/minecraft/class_10638$class_10639;
official a
Lecu$a;a(Lxo;)Lecu$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 thetest
record component.- Returns:
- the value of the
test
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
ignoreEntities
public boolean ignoreEntities()Returns the value of theignoreEntities
record component.- Returns:
- the value of the
ignoreEntities
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
errorMessage
Returns the value of theerrorMessage
record component.- Returns:
- the value of the
errorMessage
record component
-