⁠
kyle wood: Resolve lots of warnings and minor highlights throughout
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.creator.platformtype
- import com.demonwav.mcdev.creator.platformtype.PluginPlatformStep.Factory
- import com.intellij.ide.wizard.AbstractNewProjectWizardMultiStep
- import com.intellij.ide.wizard.NewProjectWizardMultiStepFactory
- import com.intellij.openapi.extensions.ExtensionPointName
- /**
- * The step to select a mod platform.
- *
- * To add custom mod platforms, register a [Factory] to the `com.demonwav.minecraft-dev.pluginPlatformWizard` extension
- * point.
- */
- class PluginPlatformStep(
- parent: PlatformTypeStep,
- ) : AbstractNewProjectWizardMultiStep<PluginPlatformStep, PluginPlatformStep.Factory>(parent, EP_NAME) {
- companion object {
- val EP_NAME = ExtensionPointName<Factory>("com.demonwav.minecraft-dev.pluginPlatformWizard")
- }
- override val self = this
- override val label = "Platform:"
- class TypeFactory : PlatformTypeStep.Factory {
- override val name = "Plugin"
- override fun createStep(parent: PlatformTypeStep) = PluginPlatformStep(parent)
- }
- interface Factory : NewProjectWizardMultiStepFactory<PluginPlatformStep>
- }
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.creator.platformtype
- import com.demonwav.mcdev.creator.platformtype.PluginPlatformStep.Factory
- import com.intellij.ide.wizard.AbstractNewProjectWizardMultiStep
- import com.intellij.ide.wizard.NewProjectWizardMultiStepFactory
- import com.intellij.openapi.extensions.ExtensionPointName
- /**
- * The step to select a mod platform.
- *
- * To add custom mod platforms, register a [Factory] to the `com.demonwav.minecraft-dev.pluginPlatformWizard` extension
- * point.
- */
- class PluginPlatformStep(
- parent: PlatformTypeStep,
- ) : AbstractNewProjectWizardMultiStep<PluginPlatformStep, Factory>(parent, EP_NAME) {
- companion object {
- val EP_NAME = ExtensionPointName<Factory>("com.demonwav.minecraft-dev.pluginPlatformWizard")
- }
- override val self = this
- override val label = "Platform:"
- class TypeFactory : PlatformTypeStep.Factory {
- override val name = "Plugin"
- override fun createStep(parent: PlatformTypeStep) = PluginPlatformStep(parent)
- }
- interface Factory : NewProjectWizardMultiStepFactory<PluginPlatformStep>
- }