Record Class NumberRangeInputControl.RangeInfo

java.lang.Object
java.lang.Record
net.minecraft.dialog.input.NumberRangeInputControl.RangeInfo
Record Components:
start -
end -
initial -
steps -
Enclosing class:
NumberRangeInputControl

public static record NumberRangeInputControl.RangeInfo(double start, double end, Optional<Double> initial, int steps) extends Record
Mappings:
Namespace Name
named net/minecraft/dialog/input/NumberRangeInputControl$RangeInfo
intermediary net/minecraft/class_11440$class_11441
official ask$a
named start
intermediary comp_4340
official b
named end
intermediary comp_4341
official c
named initial
intermediary comp_4342
official d
named steps
intermediary comp_4343
official e
  • Field Details

    • start

      private final double start
      The field for the start record component.
    • end

      private final double end
      The field for the end record component.
    • initial

      private final Optional<Double> initial
      The field for the initial record component.
    • steps

      private final int steps
      The field for the steps record component.
    • CODEC

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

    • RangeInfo

      public RangeInfo(double double2, double double3, Optional<Double> optional, int int2)
  • Method Details

    • roundToStep

      public double roundToStep(double value)
      Mappings:
      Namespace Name Mixin selector
      named roundToStep Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;roundToStep(D)D
      intermediary method_71724 Lnet/minecraft/class_11440$class_11441;method_71724(D)D
      official a Lask$a;a(D)D
    • lerp

      public double lerp(double value)
      Mappings:
      Namespace Name Mixin selector
      named lerp Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;lerp(D)D
      intermediary method_71728 Lnet/minecraft/class_11440$class_11441;method_71728(D)D
      official b Lask$a;b(D)D
    • getInitialValue

      public double getInitialValue()
      Mappings:
      Namespace Name Mixin selector
      named getInitialValue Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialValue()D
      intermediary method_71723 Lnet/minecraft/class_11440$class_11441;method_71723()D
      official a Lask$a;a()D
    • 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.
    • start

      public double start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public double end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • initial

      public Optional<Double> initial()
      Returns the value of the initial record component.
      Returns:
      the value of the initial record component
    • steps

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