Record Class SimpleOption.IntSliderCallbacks

java.lang.Object
java.lang.Record
net.minecraft.client.option.SimpleOption.IntSliderCallbacks
Record Components:
minInclusive -
maxInclusive -
All Implemented Interfaces:
SimpleOption.Callbacks<Integer>, SimpleOption.SliderCallbacks<Integer>
Enclosing class:
SimpleOption<T>

@Environment(CLIENT) public static record SimpleOption.IntSliderCallbacks(int minInclusive, int maxInclusive) extends Record implements SimpleOption.SliderCallbacks<Integer>
Mappings:
Namespace Name
official eaq$b
intermediary net/minecraft/class_7172$class_7174
named net/minecraft/client/option/SimpleOption$IntSliderCallbacks
official a
intermediary comp_593
named minInclusive
official b
intermediary comp_594
named maxInclusive
  • Field Details

    • minInclusive

      private final int minInclusive
      The field for the minInclusive record component.
    • maxInclusive

      private final int maxInclusive
      The field for the maxInclusive record component.
  • Constructor Details

    • IntSliderCallbacks

      public IntSliderCallbacks(int int2, int int3)
  • Method Details

    • getButtonCreator

      public Function<SimpleOption<Integer>,ClickableWidget> getButtonCreator(Option.TooltipFactory<Integer> tooltipFactory, GameOptions gameOptions, int x, int y, int width)
      Specified by:
      getButtonCreator in interface SimpleOption.Callbacks<Integer>
      Mappings:
      Namespace Name Mixin selector
      official a Leaq$f;a(Leap$a;Lear;III)Ljava/util/function/Function;
      intermediary method_41756 Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_316$class_5679;Lnet/minecraft/class_315;III)Ljava/util/function/Function;
      named getButtonCreator Lnet/minecraft/client/option/SimpleOption$Callbacks;getButtonCreator(Lnet/minecraft/client/option/Option$TooltipFactory;Lnet/minecraft/client/option/GameOptions;III)Ljava/util/function/Function;
    • validate

      public boolean validate(Integer integer)
      Specified by:
      validate in interface SimpleOption.Callbacks<Integer>
      Mappings:
      Namespace Name Mixin selector
      official a Leaq$b;a(Ljava/lang/Integer;)Z
      intermediary method_41761 Lnet/minecraft/class_7172$class_7174;method_41761(Ljava/lang/Integer;)Z
      named validate Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;validate(Ljava/lang/Integer;)Z
    • toSliderProgress

      public double toSliderProgress(Integer integer)
      Specified by:
      toSliderProgress in interface SimpleOption.SliderCallbacks<Integer>
      Mappings:
      Namespace Name Mixin selector
      official b Leaq$b;b(Ljava/lang/Integer;)D
      intermediary method_41764 Lnet/minecraft/class_7172$class_7174;method_41764(Ljava/lang/Integer;)D
      named toSliderProgress Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toSliderProgress(Ljava/lang/Integer;)D
    • toValue

      public Integer toValue(double double2)
      Specified by:
      toValue in interface SimpleOption.SliderCallbacks<Integer>
      Mappings:
      Namespace Name Mixin selector
      official a Leaq$b;a(D)Ljava/lang/Integer;
      intermediary method_41759 Lnet/minecraft/class_7172$class_7174;method_41759(D)Ljava/lang/Integer;
      named toValue Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toValue(D)Ljava/lang/Integer;
    • withModifier

      public <R> SimpleOption.SliderCallbacks<R> withModifier(IntFunction<? extends R> sliderProgressValueToValue, ToIntFunction<? super R> valueToSliderProgressValue)
      Mappings:
      Namespace Name Mixin selector
      official a Leaq$b;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Leaq$d;
      intermediary method_41762 Lnet/minecraft/class_7172$class_7174;method_41762(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_7172$class_7176;
      named withModifier Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;withModifier(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
    • 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. All components in this record class 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.
    • minInclusive

      public int minInclusive()
      Returns the value of the minInclusive record component.
      Returns:
      the value of the minInclusive record component
    • maxInclusive

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