public enum ProjectType extends java.lang.Enum<ProjectType> implements ProjectPluginInitializer
ProjectPluginInitializer.Listener| Enum Constant and Description |
|---|
COMMON |
FABRIC |
FORGE |
NEO_FORGE |
QUILT |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugins(java.util.function.BiConsumer<java.lang.String,java.lang.String> nameVersionPluginRegistry,
java.util.function.Function<java.lang.String,java.lang.String> propertyGetter) |
void |
addProperties(java.util.function.Consumer<java.lang.String> pluginProps) |
void |
apply(org.gradle.api.Project project,
boolean sc) |
static java.lang.String |
getIdentifier(org.gradle.api.Project project) |
@Nullable ModLoader |
getModLoader() |
java.lang.String |
getName() |
java.lang.Class<? extends AbstractPlugin<?>> |
getPluginClass() |
java.lang.String |
getProjectName() |
boolean |
isType(org.gradle.api.Project project) |
static ProjectType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectType COMMON
public static final ProjectType FORGE
public static final ProjectType NEO_FORGE
public static final ProjectType FABRIC
public static final ProjectType QUILT
public static ProjectType[] values()
for (ProjectType c : ProjectType.values()) System.out.println(c);
public static ProjectType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<? extends AbstractPlugin<?>> getPluginClass()
public java.lang.String getProjectName()
public java.lang.String getName()
@Nullable public @Nullable ModLoader getModLoader()
public boolean isType(org.gradle.api.Project project)
public void apply(org.gradle.api.Project project,
boolean sc)
public void addPlugins(java.util.function.BiConsumer<java.lang.String,java.lang.String> nameVersionPluginRegistry,
java.util.function.Function<java.lang.String,java.lang.String> propertyGetter)
addPlugins in interface ProjectPluginInitializerpublic void addProperties(java.util.function.Consumer<java.lang.String> pluginProps)
addProperties in interface ProjectPluginInitializerpublic static java.lang.String getIdentifier(org.gradle.api.Project project)