Skip to content

Commit 58ce30b

Browse files
committed
Merge branch '26.2'
# Conflicts: # src/main/java/dev/dfonline/codeclient/dev/NoClip.java # src/main/java/dev/dfonline/codeclient/hypercube/actiondump/Action.java # src/main/java/dev/dfonline/codeclient/hypercube/actiondump/Icon.java
2 parents b2b8b97 + 572ccc6 commit 58ce30b

194 files changed

Lines changed: 3021 additions & 3406 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎build.gradle‎

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
plugins {
2-
id 'fabric-loom' version '1.13-SNAPSHOT'
2+
id 'net.fabricmc.fabric-loom' version '1.17-SNAPSHOT'
33
id 'maven-publish'
44
}
55

66
version = project.mod_version
77
group = project.maven_group
88

9+
/*
10+
Disable DevAuth if you're using a mod
11+
like AuthMe instead.
12+
*/
13+
boolean devAuth = true;
14+
15+
base {
16+
archivesName = project.archives_base_name
17+
}
18+
919
repositories {
1020
// Add repositories to retrieve artifacts from in here.
1121
// You should only use this when depending on other mods because
@@ -23,24 +33,27 @@ repositories {
2333
maven {
2434
url 'https://maven.terraformersmc.com/'
2535
}
36+
// DevAuth
37+
maven { url = "https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1" }
2638
}
2739

2840
dependencies {
2941
// To change the versions see the gradle.properties file.
3042
minecraft "com.mojang:minecraft:${project.minecraft_version}"
31-
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
32-
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
43+
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
3344

3445
// Fabric API.
35-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
46+
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
3647
// YetAnotherConfigLib.
37-
modImplementation "dev.isxander:yet-another-config-lib:${project.yacl_version}"
48+
implementation "dev.isxander:yet-another-config-lib:${project.yacl_version}"
3849
// ModMenu.
39-
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
50+
implementation "com.terraformersmc:modmenu:${project.modmenu_version}"
4051

4152
// Adventure for MiniMessage parsing.
4253
implementation("net.kyori:adventure-api:${project.adventure_api_version}")
43-
modImplementation include("net.kyori:adventure-platform-fabric:${project.adventure_fabric_version}")
54+
implementation include("net.kyori:adventure-platform-fabric:${project.adventure_fabric_version}")
55+
56+
if (devAuth) runtimeOnly("me.djtheredstoner:DevAuth-fabric:1.2.2")
4457

4558
// WebSocket for CodeClient API.
4659
implementation include("org.java-websocket:Java-WebSocket:1.5.3")
@@ -55,7 +68,7 @@ processResources {
5568
}
5669
}
5770

58-
def targetJavaVersion = 21
71+
def targetJavaVersion = 25
5972
tasks.withType(JavaCompile).configureEach {
6073
// ensure that the encoding is set to UTF-8, no matter what the system default is
6174
// this fixes some edge cases with special characters not displaying correctly
@@ -72,7 +85,6 @@ java {
7285
if (JavaVersion.current() < javaVersion) {
7386
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
7487
}
75-
archivesBaseName = project.archives_base_name
7688
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
7789
// if it is present.
7890
// If you remove this line, sources will not be generated.
@@ -85,7 +97,7 @@ loom {
8597

8698
jar {
8799
from("LICENSE") {
88-
rename { "${it}_${project.archivesBaseName}" }
100+
rename { "${it}_${project.base.archivesName.get()}" }
89101
}
90102
}
91103

‎gradle.properties‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
# Done to increase the memory available to gradle.
22
org.gradle.jvmargs=-Xmx1G
3+
org.gradle.parallel=true
4+
org.gradle.configuration-cache=false
35

46
# Fabric Properties
57
## Check these on https://fabricmc.net/develop/
6-
minecraft_version=1.21.11
7-
yarn_mappings=1.21.11+build.3
8-
loader_version=0.18.4
8+
minecraft_version=26.2
9+
loader_version=0.19.3
910

1011
# Mod Properties
1112
mod_version=2.0.1
1213
maven_group=dev.dfonline
1314
archives_base_name=CodeClient
1415

1516
# Dependencies
16-
fabric_version=0.140.2+1.21.11
17-
modmenu_version=17.0.0-beta.1
18-
yacl_version=3.8.1+1.21.11-fabric
19-
adventure_api_version=4.26.1
20-
adventure_fabric_version=6.8.0
17+
fabric_api_version=0.158.0+26.2
18+
modmenu_version=20.0.1
19+
yacl_version=3.9.6+26.2-fabric
20+
adventure_api_version=5.2.0
21+
adventure_fabric_version=7.1.1

‎gradle/wrapper/gradle-wrapper.jar‎

-15.7 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

‎gradlew‎

Lines changed: 32 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gradlew.bat‎

Lines changed: 23 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
package dev.dfonline.codeclient;
22

3-
import net.minecraft.text.MutableText;
4-
import net.minecraft.text.Text;
5-
import net.minecraft.util.Formatting;
3+
import net.minecraft.ChatFormatting;
4+
import net.minecraft.network.chat.Component;
5+
import net.minecraft.network.chat.MutableComponent;
66

77
public enum ChatType {
8-
SUCCESS(Text.literal("»").formatted(Formatting.GREEN, Formatting.BOLD)),
9-
FAIL(Text.literal("»").formatted(Formatting.RED, Formatting.BOLD)),
10-
INFO(Text.literal("»").formatted(Formatting.AQUA, Formatting.BOLD));
8+
SUCCESS(Component.literal("»").withStyle(ChatFormatting.GREEN, ChatFormatting.BOLD)),
9+
FAIL(Component.literal("»").withStyle(ChatFormatting.RED, ChatFormatting.BOLD)),
10+
INFO(Component.literal("»").withStyle(ChatFormatting.AQUA, ChatFormatting.BOLD));
1111

12-
private final MutableText prefix;
12+
private final MutableComponent prefix;
1313

14-
ChatType(MutableText prefix) {
14+
ChatType(MutableComponent prefix) {
1515
this.prefix = prefix;
1616
}
1717

18-
public MutableText getText() {
18+
public MutableComponent getText() {
1919
return this.prefix;
2020
}
2121
}

0 commit comments

Comments
 (0)