Enum Class IncreasedBrightnessSliderCallback

java.lang.Object
java.lang.Enum<IncreasedBrightnessSliderCallback>
net.dillon.dillonlib.event.IncreasedBrightnessSliderCallback
All Implemented Interfaces:
Serializable, Comparable<IncreasedBrightnessSliderCallback>, Constable, net.minecraft.client.OptionInstance.SliderableValueSet<Double>, net.minecraft.client.OptionInstance.ValueSet<Double>

public enum IncreasedBrightnessSliderCallback extends Enum<IncreasedBrightnessSliderCallback> implements net.minecraft.client.OptionInstance.SliderableValueSet<Double>
  • Enum Constant Details

  • Method Details

    • values

      public static IncreasedBrightnessSliderCallback[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IncreasedBrightnessSliderCallback valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toSliderValue

      public double toSliderValue(Double value)
      Specified by:
      toSliderValue in interface net.minecraft.client.OptionInstance.SliderableValueSet<Double>
    • fromSliderValue

      public Double fromSliderValue(double slider)
      Specified by:
      fromSliderValue in interface net.minecraft.client.OptionInstance.SliderableValueSet<Double>
    • validateValue

      public Optional<Double> validateValue(Double value)
      Specified by:
      validateValue in interface net.minecraft.client.OptionInstance.ValueSet<Double>
    • codec

      public com.mojang.serialization.Codec<Double> codec()
      Specified by:
      codec in interface net.minecraft.client.OptionInstance.ValueSet<Double>