Compare commits
3 Commits
9217852c0b
...
7c2279b1d8
Author | SHA1 | Date |
---|---|---|
chylex | 7c2279b1d8 | |
chylex | 0814ddaedf | |
chylex | 0aed6282b4 |
|
@ -4,7 +4,7 @@ val fabricVersion: String by project
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
idea
|
idea
|
||||||
id("fabric-loom") version "0.9-SNAPSHOT"
|
id("fabric-loom") version "0.10-SNAPSHOT"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -42,7 +42,7 @@ tasks.processResources {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.jar {
|
tasks.jar {
|
||||||
exclude("io/github/prospector/")
|
exclude("com/terraformersmc/modmenu/")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.remapJar {
|
tasks.remapJar {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package chylex.bettercontrols.compatibility;
|
package chylex.bettercontrols.compatibility;
|
||||||
import chylex.bettercontrols.gui.BetterControlsScreen;
|
import chylex.bettercontrols.gui.BetterControlsScreen;
|
||||||
import io.github.prospector.modmenu.api.ConfigScreenFactory;
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||||
import io.github.prospector.modmenu.api.ModMenuApi;
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||||
|
|
||||||
public class ModMenuSupport implements ModMenuApi {
|
public class ModMenuSupport implements ModMenuApi {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
package io.github.prospector.modmenu.api;
|
package com.terraformersmc.modmenu.api;
|
||||||
|
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface ConfigScreenFactory<S extends Screen> {
|
public interface ConfigScreenFactory<S extends Screen> {
|
||||||
S create(Screen var1);
|
S create(Screen parent);
|
||||||
}
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.terraformersmc.modmenu.api;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
public interface ModMenuApi {
|
||||||
|
default ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||||
|
return screen -> null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,14 +0,0 @@
|
||||||
package io.github.prospector.modmenu.api;
|
|
||||||
import com.google.common.collect.ImmutableMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
public interface ModMenuApi {
|
|
||||||
default ConfigScreenFactory<?> getModConfigScreenFactory() {
|
|
||||||
return ignore -> null;
|
|
||||||
}
|
|
||||||
|
|
||||||
default Map<String, ConfigScreenFactory<?>> getProvidedConfigScreenFactories() {
|
|
||||||
return ImmutableMap.of();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "bettercontrols",
|
"id": "${id}",
|
||||||
"name": "${name}",
|
"name": "${name}",
|
||||||
"description": "${description}",
|
"description": "${description}",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"mixins": [{
|
"mixins": [{
|
||||||
"config": "bettercontrols.mixins.json",
|
"config": "${id}.mixins.json",
|
||||||
"environment": "client"
|
"environment": "client"
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
|
@ -6,20 +6,20 @@ license = "${license}"
|
||||||
issueTrackerURL = "${issuesURL}"
|
issueTrackerURL = "${issuesURL}"
|
||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "bettercontrols"
|
modId = "${id}"
|
||||||
version = "${version}"
|
version = "${version}"
|
||||||
displayName = "${name}"
|
displayName = "${name}"
|
||||||
description = "${description}"
|
description = "${description}"
|
||||||
logoFile = "icon.png"
|
logoFile = "icon.png"
|
||||||
|
|
||||||
[[dependencies.bettercontrols]]
|
[[dependencies.${id}]]
|
||||||
modId = "minecraft"
|
modId = "minecraft"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[1.17.1,)"
|
versionRange = "[1.17.1,)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "BOTH"
|
side = "BOTH"
|
||||||
|
|
||||||
[[dependencies.bettercontrols]]
|
[[dependencies.${id}]]
|
||||||
modId = "forge"
|
modId = "forge"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[37,)"
|
versionRange = "[37,)"
|
||||||
|
|
|
@ -33,6 +33,7 @@ idea {
|
||||||
module {
|
module {
|
||||||
excludeDirs.add(file("gradle"))
|
excludeDirs.add(file("gradle"))
|
||||||
excludeDirs.add(file("run"))
|
excludeDirs.add(file("run"))
|
||||||
|
excludeDirs.add(file("Fabric/run"))
|
||||||
|
|
||||||
if (findProject(":Forge") == null) {
|
if (findProject(":Forge") == null) {
|
||||||
excludeDirs.add(file("Forge"))
|
excludeDirs.add(file("Forge"))
|
||||||
|
@ -101,8 +102,7 @@ subprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
from(rootProject.sourceSets.main.get().resources)
|
inputs.property("id", modId)
|
||||||
|
|
||||||
inputs.property("name", modName)
|
inputs.property("name", modName)
|
||||||
inputs.property("description", modDescription)
|
inputs.property("description", modDescription)
|
||||||
inputs.property("version", modVersion)
|
inputs.property("version", modVersion)
|
||||||
|
@ -110,6 +110,10 @@ subprojects {
|
||||||
inputs.property("license", modLicense)
|
inputs.property("license", modLicense)
|
||||||
inputs.property("sourcesURL", modSourcesURL)
|
inputs.property("sourcesURL", modSourcesURL)
|
||||||
inputs.property("issuesURL", modIssuesURL)
|
inputs.property("issuesURL", modIssuesURL)
|
||||||
|
|
||||||
|
from(rootProject.sourceSets.main.get().resources) {
|
||||||
|
expand(inputs.properties)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.jar {
|
tasks.jar {
|
||||||
|
|
|
@ -3,7 +3,7 @@ modId=bettercontrols
|
||||||
modName=Better Controls
|
modName=Better Controls
|
||||||
modDescription=Adds many powerful key bindings and options to control your movement.\\n\\nThe features complement vanilla mechanics without giving unfair advantages, so server use should be fine.
|
modDescription=Adds many powerful key bindings and options to control your movement.\\n\\nThe features complement vanilla mechanics without giving unfair advantages, so server use should be fine.
|
||||||
modAuthor=chylex
|
modAuthor=chylex
|
||||||
modVersion=1.2.2
|
modVersion=1.2.3
|
||||||
modLicense=MPL-2.0
|
modLicense=MPL-2.0
|
||||||
modSourcesURL=https://github.com/chylex/Better-Controls
|
modSourcesURL=https://github.com/chylex/Better-Controls
|
||||||
modIssuesURL=https://github.com/chylex/Better-Controls/issues
|
modIssuesURL=https://github.com/chylex/Better-Controls/issues
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"description": "Better Controls",
|
"description": "${name}",
|
||||||
"pack_format": 7,
|
"pack_format": 7,
|
||||||
"_comment": ""
|
"_comment": ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue