Added Timer Customize, and some bug fixed.
Added an Options API.
register option :
public static final SpeedRunOptions.OptionArgument<TimerPosition> TIMER_POS = new SpeedRunOptions.OptionArgument<>(new Identifier(SpeedRunIGT.MOD_ID, "timerpos"), TimerPosition.SAMPLE_ENUM) {
@Override
public TimerPosition valueFromString(String string) {
return TimerPosition.valueOf(string);
}
@Override
public String valueToString(TimerPosition value) {
return value.name();
}
}.register();
get/set option :
SpeedRunOptions.getOption(SpeedRunOptions.TIMER_POS);
SpeedRunOptions.setOption(SpeedRunOptions.TIMER_POS, TimerPosition.SAMPLE_ENUM);