Enum Class ProjectType

java.lang.Object
java.lang.Enum<ProjectType>
nl.elec332.gradle.minecraft.moddev.ProjectType
All Implemented Interfaces:
Serializable, Comparable<ProjectType>, Constable, ProjectPluginInitializer

public enum ProjectType extends Enum<ProjectType> implements ProjectPluginInitializer
Created by Elec332 on 12-03-2024
  • Enum Constant Details

  • Method Details

    • values

      public static ProjectType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ProjectType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPluginClass

      public Class<? extends AbstractPlugin<?>> getPluginClass()
    • getProjectName

      public String getProjectName()
    • getName

      public String getName()
    • getModLoader

      @Nullable public @Nullable ModLoader getModLoader()
    • isType

      public boolean isType(org.gradle.api.Project project)
    • apply

      public void apply(org.gradle.api.Project project, boolean sc)
    • addPlugins

      public void addPlugins(BiConsumer<String,String> nameVersionPluginRegistry, Function<String,String> propertyGetter)
      Specified by:
      addPlugins in interface ProjectPluginInitializer
    • addProperties

      public void addProperties(Consumer<String> pluginProps)
      Specified by:
      addProperties in interface ProjectPluginInitializer
    • getIdentifier

      public static String getIdentifier(org.gradle.api.Project project)