Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
make the mod 1.12 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
gbl committed Jun 19, 2017
1 parent 191fde2 commit 6b8ab6b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@ buildscript {
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "1.1.0"
version = "1.12-1.1.0"
group = "de.guntram.mcmod.easiervillagertrading" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "easiervillagertrading"

sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly.
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = "1.6"
sourceCompatibility = targetCompatibility = "1.8"
}

minecraft {
version = "1.11.2-13.20.0.2231"
version = "1.12-14.21.0.2335"
runDir = "run"

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20170222"
mappings = "snapshot_20170618"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
version = EasierVillagerTrading.VERSION,
clientSideOnly = true,
guiFactory = "de.guntram.mcmod.easiervillagertrading.GuiFactory",
acceptedMinecraftVersions = "[1.11.2]",
acceptedMinecraftVersions = "[1.12]",
dependencies = "after:jei"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import net.minecraftforge.fml.client.IModGuiFactory;

public class GuiFactory implements IModGuiFactory {

@Override
public boolean hasConfigGui() {
return true;
}

@Override
public void initialize(final Minecraft minecraftInstance) {
}
Expand All @@ -15,6 +21,11 @@ public Class<? extends GuiScreen> mainConfigGuiClass() {
return de.guntram.mcmod.easiervillagertrading.GuiConfig.class;
}

@Override
public GuiScreen createConfigGui(GuiScreen parentScreen) {
return new GuiConfig(parentScreen);
}

@Override
public Set<IModGuiFactory.RuntimeOptionCategoryElement> runtimeGuiCategories() {
return null;
Expand Down

0 comments on commit 6b8ab6b

Please sign in to comment.