Package net.minecraft

Record Class class_11435

java.lang.Object
java.lang.Record
net.minecraft.class_11435
Record Components:
contents -
width -
All Implemented Interfaces:
class_11432

public record class_11435(Text contents, int width) extends Record implements class_11432
Mappings:
Namespace Name
named net/minecraft/class_11435
intermediary net/minecraft/class_11435
official asf
named contents
intermediary comp_4330
official f
named width
intermediary comp_4331
official g
  • Field Details

    • contents

      private final Text contents
      The field for the contents record component.
    • width

      private final int width
      The field for the width record component.
    • field_60640

      public static final int field_60640
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_60640 Lnet/minecraft/class_11435;field_60640:I
      intermediary field_60640 Lnet/minecraft/class_11435;field_60640:I
      official c Lasf;c:I
    • field_60641

      public static final com.mojang.serialization.MapCodec<class_11435> field_60641
      Mappings:
      Namespace Name Mixin selector
      named field_60641 Lnet/minecraft/class_11435;field_60641:Lcom/mojang/serialization/MapCodec;
      intermediary field_60641 Lnet/minecraft/class_11435;field_60641:Lcom/mojang/serialization/MapCodec;
      official d Lasf;d:Lcom/mojang/serialization/MapCodec;
    • field_60642

      public static final com.mojang.serialization.Codec<class_11435> field_60642
      Mappings:
      Namespace Name Mixin selector
      named field_60642 Lnet/minecraft/class_11435;field_60642:Lcom/mojang/serialization/Codec;
      intermediary field_60642 Lnet/minecraft/class_11435;field_60642:Lcom/mojang/serialization/Codec;
      official e Lasf;e:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • class_11435

      public class_11435(Text text, int int2)
  • Method Details

    • method_71711

      public com.mojang.serialization.MapCodec<class_11435> method_71711()
      Specified by:
      method_71711 in interface class_11432
      Mappings:
      Namespace Name Mixin selector
      named method_71711 Lnet/minecraft/class_11432;method_71711()Lcom/mojang/serialization/MapCodec;
      intermediary method_71711 Lnet/minecraft/class_11432;method_71711()Lcom/mojang/serialization/MapCodec;
      official a Lasc;a()Lcom/mojang/serialization/MapCodec;
    • 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.
    • contents

      public Text contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component