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 Details

    • test

      private final Optional<RegistryKey<TestInstance>> test
      The field for the test record component.
    • size

      private final Vec3i size
      The field for the size record component.
    • rotation

      private final BlockRotation rotation
      The field for the rotation record component.
    • ignoreEntities

      private final boolean ignoreEntities
      The field for the ignoreEntities record component.
    • status

      private final TestInstanceBlockEntity.Status status
      The field for the status record component.
    • errorMessage

      private final Optional<Text> errorMessage
      The field for the errorMessage record component.
    • CODEC

      public static final com.mojang.serialization.Codec<TestInstanceBlockEntity.Data> 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

      public static final PacketCodec<RegistryByteBuf,TestInstanceBlockEntity.Data> 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

  • Method Details

    • withSize

      public TestInstanceBlockEntity.Data withSize(Vec3i size)
      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

      public TestInstanceBlockEntity.Data withErrorMessage(Text errorMessage)
      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

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • test

      Returns the value of the test record component.
      Returns:
      the value of the test record component
    • size

      public Vec3i size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • rotation

      public BlockRotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • ignoreEntities

      public boolean ignoreEntities()
      Returns the value of the ignoreEntities record component.
      Returns:
      the value of the ignoreEntities record component
    • status

      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • errorMessage

      public Optional<Text> errorMessage()
      Returns the value of the errorMessage record component.
      Returns:
      the value of the errorMessage record component