⁠
kyle wood: Update copyright to 2023
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2022 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.platform.velocity
- import com.demonwav.mcdev.asset.PlatformAssets
- import com.demonwav.mcdev.facet.MinecraftFacet
- import com.demonwav.mcdev.platform.AbstractModuleType
- import com.demonwav.mcdev.platform.PlatformType
- import com.demonwav.mcdev.platform.velocity.generation.VelocityEventGenerationPanel
- import com.demonwav.mcdev.platform.velocity.util.VelocityConstants
- import com.demonwav.mcdev.util.CommonColors
- import com.intellij.psi.PsiClass
- object VelocityModuleType : AbstractModuleType<VelocityModule>("com.velocitypowered", "velocity") {
- private const val ID = "VELOCITY_MODULE_TYPE"
- init {
- CommonColors.applyStandardColors(colorMap, VelocityConstants.KYORI_TEXT_COLOR)
- }
- override val platformType = PlatformType.VELOCITY
- override val icon = PlatformAssets.VELOCITY_ICON
- override val id = ID
- override val ignoredAnnotations =
- listOf(VelocityConstants.SUBSCRIBE_ANNOTATION, VelocityConstants.PLUGIN_ANNOTATION)
- override val listenerAnnotations =
- listOf(VelocityConstants.SUBSCRIBE_ANNOTATION)
- override val isEventGenAvailable = true
- override fun generateModule(facet: MinecraftFacet): VelocityModule = VelocityModule(facet)
- override fun getEventGenerationPanel(chosenClass: PsiClass) = VelocityEventGenerationPanel(chosenClass)
- }
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.platform.velocity
- import com.demonwav.mcdev.asset.PlatformAssets
- import com.demonwav.mcdev.facet.MinecraftFacet
- import com.demonwav.mcdev.platform.AbstractModuleType
- import com.demonwav.mcdev.platform.PlatformType
- import com.demonwav.mcdev.platform.velocity.generation.VelocityEventGenerationPanel
- import com.demonwav.mcdev.platform.velocity.util.VelocityConstants
- import com.demonwav.mcdev.util.CommonColors
- import com.intellij.psi.PsiClass
- object VelocityModuleType : AbstractModuleType<VelocityModule>("com.velocitypowered", "velocity") {
- private const val ID = "VELOCITY_MODULE_TYPE"
- init {
- CommonColors.applyStandardColors(colorMap, VelocityConstants.KYORI_TEXT_COLOR)
- }
- override val platformType = PlatformType.VELOCITY
- override val icon = PlatformAssets.VELOCITY_ICON
- override val id = ID
- override val ignoredAnnotations =
- listOf(VelocityConstants.SUBSCRIBE_ANNOTATION, VelocityConstants.PLUGIN_ANNOTATION)
- override val listenerAnnotations =
- listOf(VelocityConstants.SUBSCRIBE_ANNOTATION)
- override val isEventGenAvailable = true
- override fun generateModule(facet: MinecraftFacet): VelocityModule = VelocityModule(facet)
- override fun getEventGenerationPanel(chosenClass: PsiClass) = VelocityEventGenerationPanel(chosenClass)
- }