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.class_7275, SimpleOption.SliderCallbacks<Integer>
Enclosing class:
SimpleOption<T>

@Environment(CLIENT) public static record SimpleOption.IntSliderCallbacks(int minInclusive, int maxInclusive) extends Record implements SimpleOption.class_7275
Mappings:
Namespace Name
official ebi$d
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

    • validate

      public Optional<Integer> validate(Integer integer)
      Specified by:
      validate in interface SimpleOption.Callbacks<Integer>
      Mappings:
      Namespace Name Mixin selector
      official a Lebi$d;a(Ljava/lang/Integer;)Ljava/util/Optional;
      intermediary method_41761 Lnet/minecraft/class_7172$class_7174;method_41761(Ljava/lang/Integer;)Ljava/util/Optional;
      named validate Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;validate(Ljava/lang/Integer;)Ljava/util/Optional;
    • codec

      public com.mojang.serialization.Codec<Integer> codec()
      Specified by:
      codec in interface SimpleOption.Callbacks<Integer>
      Mappings:
      Namespace Name Mixin selector
      official c Lebi$k;c()Lcom/mojang/serialization/Codec;
      intermediary comp_675 Lnet/minecraft/class_7172$class_7178;comp_675()Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/client/option/SimpleOption$Callbacks;codec()Lcom/mojang/serialization/Codec;
    • 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()
      Specified by:
      minInclusive in interface SimpleOption.class_7275
      Mappings:
      Namespace Name Mixin selector
      official a Lebi$e;a()I
      intermediary comp_593 Lnet/minecraft/class_7172$class_7275;comp_593()I
      named minInclusive Lnet/minecraft/client/option/SimpleOption$class_7275;minInclusive()I
    • maxInclusive

      public int maxInclusive()
      Specified by:
      maxInclusive in interface SimpleOption.class_7275
      Mappings:
      Namespace Name Mixin selector
      official b Lebi$e;b()I
      intermediary comp_594 Lnet/minecraft/class_7172$class_7275;comp_594()I
      named maxInclusive Lnet/minecraft/client/option/SimpleOption$class_7275;maxInclusive()I