Class IncreasedBrightnessSliderCallbackBase

java.lang.Object
net.dillon.dillonlib.client.IncreasedBrightnessSliderCallbackBase

public class IncreasedBrightnessSliderCallbackBase extends Object
A base callback for implementing full bright into the game.
  • Field Details

  • Constructor Details

    • IncreasedBrightnessSliderCallbackBase

      public IncreasedBrightnessSliderCallbackBase()
  • Method Details

    • validateValue

      public static Optional<Double> validateValue(Double value)
      Returns:
      the valid gamma value, for the minimum and maximum value.
    • codec

      public static com.mojang.serialization.Codec<Double> codec()
      Returns:
      the double-range Codec for the gamma value.
    • toSliderValue

      public static double toSliderValue(Double value)
      Returns:
      the new gamma's value.
    • fromSliderValue

      public static Double fromSliderValue(double sliderValue)
      Returns:
      the slider value from the gamma value.