Package net.neoforged.moddevgradle.dsl
Class ModdingVersionSettings
java.lang.Object
net.neoforged.moddevgradle.dsl.ModdingVersionSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.gradle.api.tasks.SourceSet>Contains the list of source sets for which access to Minecraft classes should be configured.@Nullable String@Nullable Stringbooleantrueif MDG should skip the NeoForm decompilation/recompilation pipeline, and instead apply transforms on the .class files and use binary patches.voidsetDisableRecompilation(boolean disableRecompilation) voidsetEnabledSourceSets(Set<org.gradle.api.tasks.SourceSet> enabledSourceSets) voidsetNeoFormVersion(String version) You can set this property to a version of NeoForm to either override the version used in the version of NeoForge you set, or to compile against Vanilla artifacts that have no NeoForge code added.voidsetVersion(String version) NeoForge version number.
-
Constructor Details
-
ModdingVersionSettings
@Inject public ModdingVersionSettings(org.gradle.api.Project project)
-
-
Method Details
-
getVersion
-
getNeoFormVersion
-
setVersion
NeoForge version number. You have to set either this orsetNeoFormVersion(java.lang.String). -
setNeoFormVersion
You can set this property to a version of NeoForm to either override the version used in the version of NeoForge you set, or to compile against Vanilla artifacts that have no NeoForge code added. -
getEnabledSourceSets
Contains the list of source sets for which access to Minecraft classes should be configured. Defaults to the main source set, but can also be set to an empty list. -
setEnabledSourceSets
-
isDisableRecompilation
public boolean isDisableRecompilation()trueif MDG should skip the NeoForm decompilation/recompilation pipeline, and instead apply transforms on the .class files and use binary patches. This leads to a faster setup since Minecraft doesn't need to be decompiled, however source files will not be available.falseby default. -
setDisableRecompilation
public void setDisableRecompilation(boolean disableRecompilation)
-