Record Class NumberRangeInputControl.RangeInfo

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

public static record NumberRangeInputControl.RangeInfo(float start, float end, Optional<Float> initial, Optional<Float> step) extends Record
Mappings:
Namespace Name
named net/minecraft/dialog/input/NumberRangeInputControl$RangeInfo
intermediary net/minecraft/class_11440$class_11441
official ass$a
named start
intermediary comp_4340
official b
named end
intermediary comp_4341
official c
named initial
intermediary comp_4342
official d
named step
intermediary comp_4382
official e
  • Field Details

    • start

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

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

      private final Optional<Float> initial
      The field for the initial record component.
    • step

      private final Optional<Float> step
      The field for the step 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 Lass$a;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • sliderProgressToValue

      public float sliderProgressToValue(float sliderProgress)
      Mappings:
      Namespace Name Mixin selector
      named sliderProgressToValue Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;sliderProgressToValue(F)F
      intermediary method_71728 Lnet/minecraft/class_11440$class_11441;method_71728(F)F
      official a Lass$a;a(F)F
    • isValueOutOfRange

      private boolean isValueOutOfRange(float value)
      Mappings:
      Namespace Name Mixin selector
      named isValueOutOfRange Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;isValueOutOfRange(F)Z
      intermediary method_71959 Lnet/minecraft/class_11440$class_11441;method_71959(F)Z
      official b Lass$a;b(F)Z
    • getInitialValue

      private float getInitialValue()
      Mappings:
      Namespace Name Mixin selector
      named getInitialValue Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialValue()F
      intermediary method_71961 Lnet/minecraft/class_11440$class_11441;method_71961()F
      official f Lass$a;f()F
    • getInitialSliderProgress

      public float getInitialSliderProgress()
      Mappings:
      Namespace Name Mixin selector
      named getInitialSliderProgress Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialSliderProgress()F
      intermediary method_71723 Lnet/minecraft/class_11440$class_11441;method_71723()F
      official a Lass$a;a()F
    • valueToSliderProgress

      private float valueToSliderProgress(float value)
      Mappings:
      Namespace Name Mixin selector
      named valueToSliderProgress Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;valueToSliderProgress(F)F
      intermediary method_71960 Lnet/minecraft/class_11440$class_11441;method_71960(F)F
      official c Lass$a;c(F)F
    • 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 float start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

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

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

      public Optional<Float> step()
      Returns the value of the step record component.
      Returns:
      the value of the step record component