Package net.minecraft.client
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>
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.OptionInstance.CycleableValueSetOptionInstance.CycleableValueSet.ValueSetter<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final IntSupplierThe field for themaxSupplierrecord component.private final intThe field for theminInclusiverecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionClampingLazyMaxIntRange(int minInclusive, IntSupplier maxSupplier) Creates an instance of aClampingLazyMaxIntRangerecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.serialization.Codec<Integer>codec()booleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxSupplierrecord component.intReturns the value of theminInclusiverecord component.final StringtoString()Returns a string representation of this record class.validateValue(Integer p_231590_) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.OptionInstance.CycleableValueSetvalueSetterMethods inherited from interface net.minecraft.client.OptionInstance.IntRangeBasefromSliderValue, toSliderValue, xmapMethods inherited from interface net.minecraft.client.OptionInstance.SliderableOrCyclableValueSetcreateButtonMethods inherited from interface net.minecraft.client.OptionInstance.SliderableValueSetcreateButton
- 
Field Details- 
minInclusiveprivate final int minInclusiveThe field for theminInclusiverecord component.
- 
maxSupplierThe field for themaxSupplierrecord component.
 
- 
- 
Constructor Details- 
ClampingLazyMaxIntRangeCreates an instance of aClampingLazyMaxIntRangerecord class.- Parameters:
- minInclusive- the value for the- minInclusiverecord component
- maxSupplier- the value for the- maxSupplierrecord component
 
 
- 
- 
Method Details- 
validateValue- Specified by:
- validateValuein interface- OptionInstance.ValueSet<Integer>
 
- 
maxInclusivepublic int maxInclusive()- Specified by:
- maxInclusivein interface- OptionInstance.IntRangeBase
 
- 
codec- Specified by:
- codecin interface- OptionInstance.ValueSet<Integer>
 
- 
createCycleButtonpublic boolean createCycleButton()- Specified by:
- createCycleButtonin interface- OptionInstance.SliderableOrCyclableValueSet<Integer>
 
- 
valueListSupplier- Specified by:
- valueListSupplierin interface- OptionInstance.CycleableValueSet<Integer>
 
- 
minInclusivepublic int minInclusive()Returns the value of theminInclusiverecord component.- Specified by:
- minInclusivein interface- OptionInstance.IntRangeBase
- Returns:
- the value of the minInclusiverecord component
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
maxSupplierReturns the value of themaxSupplierrecord component.- Returns:
- the value of the maxSupplierrecord component
 
 
-