blob: 1fa7016c355e1805fc4f0b24afed1c619c795726 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package de.hysky.skyblocker.config.configs;
import dev.isxander.yacl3.config.v2.api.SerialEntry;
import it.unimi.dsi.fastutil.ints.IntList;
import net.minecraft.sound.SoundEvent;
import net.minecraft.sound.SoundEvents;
import java.util.HashMap;
import java.util.Map;
public class EventNotificationsConfig {
@SerialEntry
public Criterion criterion = Criterion.SKYBLOCK;
@SerialEntry
public Sound reminderSound = Sound.PLING;
@SerialEntry
public Map<String, IntList> eventsReminderTimes = new HashMap<>();
public enum Criterion {
NONE,
SKYBLOCK,
HYPIXEL,
EVERYWHERE
}
public enum Sound {
NONE(null),
BELL(SoundEvents.BLOCK_BELL_USE),
DING(SoundEvents.ENTITY_ARROW_HIT_PLAYER),
PLING(SoundEvents.BLOCK_NOTE_BLOCK_PLING.value()),
GOAT(SoundEvents.GOAT_HORN_SOUNDS.getFirst().value());
public SoundEvent getSoundEvent() {
return soundEvent;
}
final SoundEvent soundEvent;
Sound(SoundEvent soundEvent) {
this.soundEvent = soundEvent;
}
}
}
|