mirror of
https://github.com/chylex/Minecraft-Window-Title.git
synced 2025-05-25 17:34:09 +02:00
Release v1.1.1 for Minecraft 1.19 or newer
This commit is contained in:
parent
6c4892dcd0
commit
5325cdf282
Forge/src/main/java/chylex/customwindowtitle/forge
build.gradle.ktsgradle.propertiessrc/main/resources
@ -11,7 +11,6 @@ import net.minecraftforge.fml.common.Mod;
|
|||||||
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
import net.minecraftforge.fml.loading.FMLPaths;
|
import net.minecraftforge.fml.loading.FMLPaths;
|
||||||
import net.minecraftforge.fmllegacy.network.FMLNetworkConstants;
|
|
||||||
|
|
||||||
@Mod("customwindowtitle")
|
@Mod("customwindowtitle")
|
||||||
public class CustomWindowTitle {
|
public class CustomWindowTitle {
|
||||||
@ -19,7 +18,7 @@ public class CustomWindowTitle {
|
|||||||
|
|
||||||
public CustomWindowTitle() {
|
public CustomWindowTitle() {
|
||||||
config = TitleConfig.read(FMLPaths.CONFIGDIR.get().toString());
|
config = TitleConfig.read(FMLPaths.CONFIGDIR.get().toString());
|
||||||
ModLoadingContext.get().registerExtensionPoint(DisplayTest.class, () -> new DisplayTest(() -> FMLNetworkConstants.IGNORESERVERONLY, (a, b) -> true));
|
ModLoadingContext.get().registerExtensionPoint(DisplayTest.class, () -> new DisplayTest(() -> DisplayTest.IGNORESERVERONLY, (a, b) -> true));
|
||||||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onClientSetup);
|
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onClientSetup);
|
||||||
CommonTokenData.register(new TokenProvider());
|
CommonTokenData.register(new TokenProvider());
|
||||||
}
|
}
|
||||||
|
@ -78,12 +78,12 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extensions.getByType<JavaPluginExtension>().apply {
|
extensions.getByType<JavaPluginExtension>().apply {
|
||||||
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
options.release.set(16)
|
options.release.set(17)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,16 +9,16 @@ modSourcesURL=https://github.com/chylex/Minecraft-Window-Title
|
|||||||
modIssuesURL=https://github.com/chylex/Minecraft-Window-Title/issues
|
modIssuesURL=https://github.com/chylex/Minecraft-Window-Title/issues
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
minecraftVersion=1.17.1
|
minecraftVersion=1.19
|
||||||
forgeVersion=37.0.75
|
forgeVersion=41.1.0
|
||||||
fabricVersion=0.11.7
|
fabricVersion=0.14.12
|
||||||
loomVersion=0.12
|
loomVersion=0.12
|
||||||
mixinVersion=0.8.4
|
mixinVersion=0.8.5
|
||||||
|
|
||||||
# Constraints
|
# Constraints
|
||||||
minimumMinecraftVersion=1.17
|
minimumMinecraftVersion=1.19
|
||||||
minimumForgeVersion=31.2.45
|
minimumForgeVersion=41.0.1
|
||||||
minimumFabricVersion=0.7.2
|
minimumFabricVersion=0.12.0
|
||||||
|
|
||||||
# Gradle
|
# Gradle
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "chylex.customwindowtitle.mixin",
|
"package": "chylex.customwindowtitle.mixin",
|
||||||
"refmap": "customwindowtitle.refmap.json",
|
"refmap": "customwindowtitle.refmap.json",
|
||||||
"compatibilityLevel": "JAVA_16",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"client": [
|
"client": [
|
||||||
"DisableVanillaTitle"
|
"DisableVanillaTitle"
|
||||||
],
|
],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"description": "${name}",
|
"description": "${name}",
|
||||||
"pack_format": 5,
|
"pack_format": 7,
|
||||||
"_comment": ""
|
"_comment": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user