From bedee39321838f622080a77be10cc161aa3fc8e1 Mon Sep 17 00:00:00 2001 From: Falkreon Date: Wed, 24 Jul 2019 16:02:56 -0500 Subject: Fix abstract method woes, fix button text position --- build.gradle | 21 +++++++++++---------- gradle.properties | 2 +- .../cottonmc/cotton/gui/CottonScreenController.java | 17 +++++++++++------ .../github/cottonmc/cotton/gui/widget/WButton.java | 6 +----- 4 files changed, 24 insertions(+), 22 deletions(-) diff --git a/build.gradle b/build.gradle index 0baccd4..3e00026 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { } plugins { - id 'fabric-loom' version '0.2.3-SNAPSHOT' + id 'fabric-loom' version '0.2.4-SNAPSHOT' id 'maven-publish' id "com.jfrog.artifactory" version "4.9.0" } @@ -29,20 +29,18 @@ repositories { } dependencies { - //to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}" - modCompile "net.fabricmc:fabric-loader:${project.loader_version}" - - // Fabric API. This is technically optional, but you probably want it anyway. - modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - modCompile "io.github.cottonmc:Jankson:${project.jankson_version}" + modApi "net.fabricmc:fabric-loader:${project.loader_version}" + modApi "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + modApi "io.github.cottonmc:Jankson:${project.jankson_version}" include "io.github.cottonmc:Jankson:${project.jankson_version}" compileOnly ("com.google.code.findbugs:jsr305:3.0.2") { transitive = false } - modCompile "io.github.prospector:modmenu:1.6.3+build.101" - // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. - // You may need to force-disable transitiveness on them. + + + modImplementation "io.github.prospector:modmenu:1.6.3+build.101" + //modApi "io.github.prospector:modmenu:1.6.3+build.101" } processResources { @@ -86,16 +84,19 @@ publishing { // builtBy remapJar //} artifact ("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar") { //release jar - file location not provided anywhere in loom + artifactId = "LibGui" classifier null builtBy remapJar } artifact ("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}-dev.jar") { //release jar - file location not provided anywhere in loom + artifactId = "LibGui" classifier "dev" builtBy remapJar } artifact(sourcesJar) { + artifactId = "LibGui" builtBy remapSourcesJar } } diff --git a/gradle.properties b/gradle.properties index f465954..f64db91 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.4.8+build.155 # Mod Properties - mod_version = 1.2.0 + mod_version = 1.2.1 maven_group = io.github.cottonmc archives_base_name = LibGui diff --git a/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java b/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java index 1b8af53..3393cdd 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/CottonScreenController.java @@ -29,7 +29,7 @@ import net.minecraft.recipe.RecipeInputProvider; import net.minecraft.recipe.RecipeType; import net.minecraft.world.World; -public abstract class CottonScreenController extends CraftingContainer implements GuiDescription { +public class CottonScreenController extends CraftingContainer implements GuiDescription { protected Inventory blockInventory; protected PlayerInventory playerInventory; @@ -293,15 +293,18 @@ public abstract class CottonScreenController extends CraftingContainer