package com.shanebeestudios.skbee.elements.gameevent.type;

import ch.njol.skript.registrations.Classes;
import com.github.shanebeee.skr.Registration;
import com.shanebeestudios.skbee.api.util.Util;
import org.bukkit.GameEvent;
import org.bukkit.Registry;

public class Types {

    public static void register(Registration reg) {
        if (Classes.getExactClassInfo(GameEvent.class) == null) {
            reg.newRegistryType(Registry.GAME_EVENT, GameEvent.class, "gameevent")
                .name("Game Event")
                .user("game ?events?")
                .description("Represents a Minecraft 'GameEvent', mainly used by Skulk Sensors. Requires MC 1.17+.",
                    "See [**GameEvents**](https://minecraft.wiki/w/Sculk_Sensor#Vibration_frequencies) on McWiki for more details.",
                    Util.AUTO_GEN_NOTE)
                .after("itemtype")
                .examples("")
                .since("1.14.0")
                .register();
        }
    }

}
