/*
 * Minosoft
 * Copyright (C) 2020-2023 Moritz Zwerger
 *
 * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
 *
 * This software is not affiliated with Mojang AB, the original developer of Minecraft.
 */

package de.bixilon.minosoft.data.registries.effects.vision

import de.bixilon.minosoft.data.registries.effects.StatusEffectType
import de.bixilon.minosoft.data.registries.effects.properties.categories.BeneficalEffect
import de.bixilon.minosoft.data.registries.effects.properties.categories.HarmfulEffect
import de.bixilon.minosoft.data.registries.identified.Identified
import de.bixilon.minosoft.data.registries.identified.Namespaces.minecraft
import de.bixilon.minosoft.data.text.formatting.color.Colored
import de.bixilon.minosoft.data.text.formatting.color.RGBColor.Companion.asRGBColor

interface VisionEffect {


    object Nausea : StatusEffectType(), VisionEffect, Identified, Colored, HarmfulEffect {
        override val identifier = minecraft("nausea")
        override val color = 0x551D4A.asRGBColor()
    }

    object Blindness : StatusEffectType(), VisionEffect, Identified, Colored, HarmfulEffect {
        override val identifier = minecraft("blindness")
        override val color = 0x1F1F23.asRGBColor()
    }

    object NightVision : StatusEffectType(), VisionEffect, Identified, Colored, BeneficalEffect {
        override val identifier = minecraft("night_vision")
        override val color = 0x1F1FA1.asRGBColor()
    }

    object Darkness : StatusEffectType(), VisionEffect, Identified, Colored, HarmfulEffect {
        override val identifier = minecraft("darkness")
        override val color = 0x292721.asRGBColor()
    }
}
