Record Class NumberRangeInputControl

java.lang.Object
java.lang.Record
net.minecraft.dialog.input.NumberRangeInputControl
Record Components:
width -
label -
labelFormat -
rangeInfo -
All Implemented Interfaces:
InputControl

public record NumberRangeInputControl(int width, Text label, String labelFormat, NumberRangeInputControl.RangeInfo rangeInfo) extends Record implements InputControl
Mappings:
Namespace Name
named net/minecraft/dialog/input/NumberRangeInputControl
intermediary net/minecraft/class_11440
official ass
named width
intermediary comp_4336
official c
named label
intermediary comp_4337
official d
named labelFormat
intermediary comp_4338
official e
named rangeInfo
intermediary comp_4339
official f
  • Field Details

    • width

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

      private final Text label
      The field for the label record component.
    • labelFormat

      private final String labelFormat
      The field for the labelFormat record component.
    • rangeInfo

      private final NumberRangeInputControl.RangeInfo rangeInfo
      The field for the rangeInfo record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<NumberRangeInputControl> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/input/NumberRangeInputControl;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60645 Lnet/minecraft/class_11440;field_60645:Lcom/mojang/serialization/MapCodec;
      official a Lass;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<NumberRangeInputControl> getCodec()
      Specified by:
      getCodec in interface InputControl
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/dialog/input/InputControl;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_71717 Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;
      official a Lasq;a()Lcom/mojang/serialization/MapCodec;
    • getFormattedLabel

      public Text getFormattedLabel(String value)
      Mappings:
      Namespace Name Mixin selector
      named getFormattedLabel Lnet/minecraft/dialog/input/NumberRangeInputControl;getFormattedLabel(Ljava/lang/String;)Lnet/minecraft/text/Text;
      intermediary method_71722 Lnet/minecraft/class_11440;method_71722(Ljava/lang/String;)Lnet/minecraft/class_2561;
      official a Lass;a(Ljava/lang/String;)Lxo;
    • 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.
    • width

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

      public Text label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • labelFormat

      public String labelFormat()
      Returns the value of the labelFormat record component.
      Returns:
      the value of the labelFormat record component
    • rangeInfo

      Returns the value of the rangeInfo record component.
      Returns:
      the value of the rangeInfo record component