package dev.isxander.controlify.compatibility.sodium;

import dev.isxander.controlify.screenop.compat.AbstractSliderComponentProcessor;

import java.util.function.Consumer;

public class SliderControlProcessor extends AbstractSliderComponentProcessor {
    private final Consumer<Boolean> cycleMethod;

    public SliderControlProcessor(Consumer<Boolean> cycleMethod) {
        this.cycleMethod = cycleMethod;
    }

    @Override
    protected void incrementSlider(boolean reverse) {
        cycleMethod.accept(reverse);
    }
}
