mirror of
https://github.com/chylex/Minecraft-Window-Title.git
synced 2025-05-04 19:34:07 +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.javafmlmod.FMLJavaModLoadingContext;
|
||||
import net.minecraftforge.fml.loading.FMLPaths;
|
||||
import net.minecraftforge.fmllegacy.network.FMLNetworkConstants;
|
||||
|
||||
@Mod("customwindowtitle")
|
||||
public class CustomWindowTitle {
|
||||
@ -19,7 +18,7 @@ public class CustomWindowTitle {
|
||||
|
||||
public CustomWindowTitle() {
|
||||
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);
|
||||
CommonTokenData.register(new TokenProvider());
|
||||
}
|
||||
|
@ -78,12 +78,12 @@ allprojects {
|
||||
}
|
||||
|
||||
extensions.getByType<JavaPluginExtension>().apply {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
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
|
||||
|
||||
# Dependencies
|
||||
minecraftVersion=1.17.1
|
||||
forgeVersion=37.0.75
|
||||
fabricVersion=0.11.7
|
||||
minecraftVersion=1.19
|
||||
forgeVersion=41.1.0
|
||||
fabricVersion=0.14.12
|
||||
loomVersion=0.12
|
||||
mixinVersion=0.8.4
|
||||
mixinVersion=0.8.5
|
||||
|
||||
# Constraints
|
||||
minimumMinecraftVersion=1.17
|
||||
minimumForgeVersion=31.2.45
|
||||
minimumFabricVersion=0.7.2
|
||||
minimumMinecraftVersion=1.19
|
||||
minimumForgeVersion=41.0.1
|
||||
minimumFabricVersion=0.12.0
|
||||
|
||||
# Gradle
|
||||
org.gradle.jvmargs=-Xmx3G
|
||||
|
@ -3,7 +3,7 @@
|
||||
"minVersion": "0.8",
|
||||
"package": "chylex.customwindowtitle.mixin",
|
||||
"refmap": "customwindowtitle.refmap.json",
|
||||
"compatibilityLevel": "JAVA_16",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"client": [
|
||||
"DisableVanillaTitle"
|
||||
],
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"pack": {
|
||||
"description": "${name}",
|
||||
"pack_format": 5,
|
||||
"pack_format": 7,
|
||||
"_comment": ""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user