public abstract class BaseExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
forgeGradleVersion |
protected java.lang.String |
mappingsChannel |
protected java.lang.String |
mappingsCustom |
protected boolean |
mappingsSet |
protected int |
mappingsVersion |
protected static java.util.Map<java.lang.String,java.lang.String> |
MCP_VERSION_MAP |
protected java.lang.String |
mcpVersion |
protected org.gradle.api.Project |
project |
protected ReplacementProvider |
replacer |
protected java.lang.String |
version |
| Constructor and Description |
|---|
BaseExtension(BasePlugin<? extends BaseExtension> plugin) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkMappings()
Checks that the set mappings are valid based on the channel, version, and MC version.
|
void |
copyFrom(BaseExtension ext) |
java.lang.String |
getMappings()
Get the MCP mappings channel and version
Examples: stable_17, snapshot_20151113 |
java.lang.String |
getMappingsChannel()
Get the MCP mappings channel
|
java.lang.String |
getMappingsChannelNoSubtype()
Strips the _nodoc and _verbose channel subtypes from the channel name.
|
java.lang.String |
getMappingsVersion()
Get the MCP mappings version
|
java.lang.String |
getMcpVersion()
Get the MCP data version
|
java.lang.String |
getVersion()
Get the Minecraft version
|
void |
setMappings(java.lang.String mappings)
Set the MCP mappings channel and version
The format is: channel_version.Examples: stable_17, snapshot_20151113 |
void |
setMcpVersion(java.lang.String mcpVersion) |
void |
setVersion(java.lang.String version)
Set the Minecraft version
|
protected static final transient java.util.Map<java.lang.String,java.lang.String> MCP_VERSION_MAP
public final java.lang.String forgeGradleVersion
protected transient org.gradle.api.Project project
protected transient ReplacementProvider replacer
protected java.lang.String version
protected java.lang.String mcpVersion
protected boolean mappingsSet
protected java.lang.String mappingsChannel
protected int mappingsVersion
protected java.lang.String mappingsCustom
public BaseExtension(BasePlugin<? extends BaseExtension> plugin)
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - The Minecraft versionpublic java.lang.String getMcpVersion()
public void setMcpVersion(java.lang.String mcpVersion)
public void copyFrom(BaseExtension ext)
public java.lang.String getMappings()
stable_17, snapshot_20151113channel_version.public java.lang.String getMappingsChannel()
public java.lang.String getMappingsChannelNoSubtype()
public java.lang.String getMappingsVersion()
public void setMappings(java.lang.String mappings)
channel_version.stable_17, snapshot_20151113mappings - The channel and versionprotected void checkMappings()