Class SliderPercentageOption

    • Field Detail

      • steps

        protected final float steps
      • minValue

        protected final double minValue
      • maxValue

        protected double maxValue
      • getter

        private final java.util.function.Function<GameSettings,​java.lang.Double> getter
      • setter

        private final java.util.function.BiConsumer<GameSettings,​java.lang.Double> setter
    • Constructor Detail

      • SliderPercentageOption

        public SliderPercentageOption​(java.lang.String p_i51155_1_,
                                      double p_i51155_2_,
                                      double p_i51155_4_,
                                      float p_i51155_6_,
                                      java.util.function.Function<GameSettings,​java.lang.Double> p_i51155_7_,
                                      java.util.function.BiConsumer<GameSettings,​java.lang.Double> p_i51155_8_,
                                      java.util.function.BiFunction<GameSettings,​SliderPercentageOption,​ITextComponent> p_i51155_9_)
    • Method Detail

      • toPct

        public double toPct​(double p_216726_1_)
      • toValue

        public double toValue​(double p_216725_1_)
      • clamp

        private double clamp​(double p_216731_1_)
      • getMinValue

        public double getMinValue()
      • getMaxValue

        public double getMaxValue()
      • setMaxValue

        public void setMaxValue​(float p_216728_1_)
      • set

        public void set​(GameSettings p_216727_1_,
                        double p_216727_2_)