Class IncreasedBrightnessSliderCallbackBase
java.lang.Object
net.dillon.dillonlib.client.IncreasedBrightnessSliderCallbackBase
A base callback for implementing full bright into the game.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<Double> codec()static DoublefromSliderValue(double sliderValue) static doubletoSliderValue(Double value) validateValue(Double value)
-
Field Details
-
min
public static final double min- See Also:
-
max
public static final double max- See Also:
-
-
Constructor Details
-
IncreasedBrightnessSliderCallbackBase
public IncreasedBrightnessSliderCallbackBase()
-
-
Method Details
-
validateValue
-
codec
- Returns:
- the double-range
Codecfor the gamma value.
-
toSliderValue
- Returns:
- the new gamma's value.
-
fromSliderValue
- Returns:
- the slider value from the gamma value.
-