HTTPS
https://git.nageyqma.icu/nageyqma/blade-addons-next.git
SSH
git@git.nageyqma.icu:nageyqma/blade-addons-next.git
HTTPS 链接可直接 git clone;推送代码请使用 SSH。
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
package blade.addon.utils.times;
import blade.addon.utils.config.FolderUtility;
import config.practical.manager.ConfigManager;
import config.practical.manager.ConfigValue;
import java.util.ArrayList;
import java.util.List;
public class PersonalBests {
private static final ArrayList<PersonalBest> pbList = new ArrayList<>();
public static final ConfigManager pbManager = new ConfigManager(FolderUtility.CONFIG_PATH + FolderUtility.PBS_NAME,
List.of(PersonalBests.class));
@ConfigValue
public static PersonalBest redRelicTime = new PersonalBest();
@ConfigValue
public static PersonalBest orangeRelicTime = new PersonalBest();
@ConfigValue
public static PersonalBest blueRelicTime = new PersonalBest();
@ConfigValue
public static PersonalBest greenRelicTime = new PersonalBest();
@ConfigValue
public static PersonalBest purpleRelicTime = new PersonalBest();
@ConfigValue
public static PersonalBest crystalTime = new PersonalBest();
@ConfigValue
public static PersonalBest predevTime = new PersonalBest();
@ConfigValue
public static PersonalBest practiseSSTime = new PersonalBest();
@ConfigValue
public static PersonalBest practiseSSRealisticTime = new PersonalBest();
@ConfigValue
public static PersonalBest practiseSSRealisticUnluckyTime = new PersonalBest();
@ConfigValue
public static PersonalBest practiseSSUnluckyTime = new PersonalBest();
public static void save() {
pbManager.save();
}
public static void reset() {
for (PersonalBest personalBest: pbList) {
personalBest.reset();
}
}
public static void register(PersonalBest personalBest) {
pbList.add(personalBest);
}
}