aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/config/configs/EventNotificationsConfig.java
blob: c43ae7a69f8bb84ab9dd6dfbe9cfd85448ea37dd (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
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 Sound reminderSound = Sound.PLING;

    @SerialEntry
    public Map<String, IntList> 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;
        }
    }
}