diff options
author | viciscat <51047087+viciscat@users.noreply.github.com> | 2024-05-10 01:08:39 +0200 |
---|---|---|
committer | viciscat <51047087+viciscat@users.noreply.github.com> | 2024-06-02 13:26:45 +0200 |
commit | 1ab1b64847378254f0ea5192c3c5939a9f65de9c (patch) | |
tree | 0feb04cb07d06e2853d8519fd06f3ccc89232d0b /src/main/java/de/hysky/skyblocker/config/configs | |
parent | c4688d4f5f43432114a9e3cc635140c6b6f565bb (diff) | |
download | Skyblocker-1ab1b64847378254f0ea5192c3c5939a9f65de9c.tar.gz Skyblocker-1ab1b64847378254f0ea5192c3c5939a9f65de9c.tar.bz2 Skyblocker-1ab1b64847378254f0ea5192c3c5939a9f65de9c.zip |
the config commit tm
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/config/configs')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/config/configs/EventNotificationsConfig.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/de/hysky/skyblocker/config/configs/EventNotificationsConfig.java b/src/main/java/de/hysky/skyblocker/config/configs/EventNotificationsConfig.java new file mode 100644 index 00000000..cc51e536 --- /dev/null +++ b/src/main/java/de/hysky/skyblocker/config/configs/EventNotificationsConfig.java @@ -0,0 +1,35 @@ +package de.hysky.skyblocker.config.configs; + +import dev.isxander.yacl3.config.v2.api.SerialEntry; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class EventNotificationsConfig { + + @SerialEntry + public Sound reminderSound = Sound.PLING; + + @SerialEntry + public Map<String, List<Integer>> eventsReminderTimes = new HashMap<>(); + + 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; + } + } +} |