Record Class OptionInstance.ClampingLazyMaxIntRange

java.lang.Object
java.lang.Record
net.minecraft.client.OptionInstance.ClampingLazyMaxIntRange
All Implemented Interfaces:
OptionInstance.CycleableValueSet<Integer>, OptionInstance.IntRangeBase, OptionInstance.SliderableOrCyclableValueSet<Integer>, OptionInstance.SliderableValueSet<Integer>, OptionInstance.ValueSet<Integer>
Enclosing class:
OptionInstance<T>

public static record OptionInstance.ClampingLazyMaxIntRange(int minInclusive, IntSupplier maxSupplier) extends Record implements OptionInstance.IntRangeBase, OptionInstance.SliderableOrCyclableValueSet<Integer>
  • Field Details

    • minInclusive

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

      private final IntSupplier maxSupplier
      The field for the maxSupplier record component.
  • Constructor Details

    • ClampingLazyMaxIntRange

      public ClampingLazyMaxIntRange(int minInclusive, IntSupplier maxSupplier)
      Creates an instance of a ClampingLazyMaxIntRange record class.
      Parameters:
      minInclusive - the value for the minInclusive record component
      maxSupplier - the value for the maxSupplier record component
  • Method Details