Skip to content

Commit fec2d62

Browse files
committed
Update to 26.1
1 parent 9c41287 commit fec2d62

35 files changed

+212
-206
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
with:
2121
submodules: 'true'
2222

@@ -65,19 +65,19 @@ jobs:
6565

6666
- name: Capture shared library (ubuntu-latest)
6767
if: matrix.os == 'ubuntu-latest'
68-
uses: actions/upload-artifact@v4
68+
uses: actions/upload-artifact@v7
6969
with:
7070
name: libcubiomes.so
7171
path: src/main/resources/libcubiomes.so
7272
- name: Capture shared library (macos-latest)
7373
if: matrix.os == 'macos-latest'
74-
uses: actions/upload-artifact@v4
74+
uses: actions/upload-artifact@v7
7575
with:
7676
name: libcubiomes.dylib
7777
path: src/main/resources/libcubiomes.dylib
7878
- name: Capture shared library (windows-latest)
7979
if: matrix.os == 'windows-latest'
80-
uses: actions/upload-artifact@v4
80+
uses: actions/upload-artifact@v7
8181
with:
8282
name: cubiomes.dll
8383
path: src/main/resources/cubiomes.dll
@@ -90,20 +90,20 @@ jobs:
9090
LLVM_HOME: /usr/lib/llvm-13
9191
steps:
9292
- name: Checkout repository
93-
uses: actions/checkout@v4
93+
uses: actions/checkout@v6
9494
with:
9595
submodules: 'true'
9696
- name: Capture shared library
97-
uses: actions/download-artifact@v4
97+
uses: actions/download-artifact@v8
9898
with:
9999
merge-multiple: true
100100
path: src/main/resources/
101101
- name: Validate gradle wrapper
102-
uses: gradle/actions/wrapper-validation@v4
103-
- name: Setup JDK 23
104-
uses: actions/setup-java@v4
102+
uses: gradle/actions/wrapper-validation@v5
103+
- name: Setup JDK 25
104+
uses: actions/setup-java@v5
105105
with:
106-
java-version: 23
106+
java-version: 25
107107
distribution: 'temurin'
108108
- name: Make Gradle wrapper executable
109109
run: |
@@ -120,7 +120,7 @@ jobs:
120120
- name: Build
121121
run: ./gradlew build
122122
- name: Capture build artifacts
123-
uses: actions/upload-artifact@v4
123+
uses: actions/upload-artifact@v7
124124
with:
125125
name: SeedMapper
126126
path: build/libs/

build.gradle

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import dev.xpple.seedmapper.buildscript.GenerateBuildInfoTask
33
import net.fabricmc.loom.task.prod.ClientProductionRunTask
44

55
plugins {
6-
id 'fabric-loom' version "${fabric_loom_version}"
6+
id 'net.fabricmc.fabric-loom' version "${fabric_loom_version}"
77
id 'maven-publish'
88
}
99

10+
version = project.mod_version
11+
group = project.maven_group
12+
1013
base {
1114
archivesName = project.archives_base_name
12-
version = project.mod_version
13-
group = project.maven_group
1415
}
1516

1617
loom {
@@ -23,10 +24,6 @@ repositories {
2324
name = 'xpple'
2425
url = 'https://maven.xpple.dev/maven2'
2526
}
26-
maven {
27-
name = 'ParchmentMC'
28-
url = 'https://maven.parchmentmc.org'
29-
}
3027
maven {
3128
name = 'DJtheRedstoner'
3229
url = 'https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1'
@@ -39,29 +36,23 @@ repositories {
3936

4037
dependencies {
4138
minecraft "com.mojang:minecraft:${project.minecraft_version}"
42-
mappings loom.layered {
43-
officialMojangMappings {
44-
nameSyntheticMembers = true
45-
}
46-
parchment "org.parchmentmc.data:${project.parchment_mappings}"
47-
}
48-
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
39+
implementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
4940

50-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
41+
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
5142
productionRuntimeMods "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
5243

53-
include modImplementation("dev.xpple:clientarguments:${project.clientarguments_version}")
54-
include modImplementation("dev.xpple:betterconfig-fabric:${project.betterconfig_version}")
55-
include modImplementation("dev.xpple:simplewaypoints:${project.simplewaypoints_version}")
44+
include implementation("dev.xpple:clientarguments:${project.clientarguments_version}")
45+
include implementation("dev.xpple:betterconfig-fabric:${project.betterconfig_version}")
46+
include implementation("dev.xpple:simplewaypoints:${project.simplewaypoints_version}")
5647

57-
modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
48+
runtimeOnly("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
5849
exclude group: 'net.fabricmc', module: 'fabric-loader'
5950
}
6051
productionRuntimeMods("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
6152
exclude group: 'net.fabricmc', module: 'fabric-loader'
6253
}
6354

64-
modCompileOnly "meteordevelopment:baritone:${project.baritone_version}"
55+
compileOnly "meteordevelopment:baritone:${project.baritone_version}"
6556

6657
testImplementation platform("org.junit:junit-bom:${project.junit_version}")
6758
testImplementation 'org.junit.jupiter:junit-jupiter'
@@ -89,7 +80,7 @@ tasks.register("prodClient", ClientProductionRunTask) {
8980
jvmArgs.add("-Ddevauth.enabled=true")
9081

9182
javaLauncher = javaToolchains.launcherFor {
92-
languageVersion = JavaLanguageVersion.of(23)
83+
languageVersion = JavaLanguageVersion.of(25)
9384
}
9485
}
9586

@@ -116,12 +107,12 @@ processResources {
116107
}
117108

118109
tasks.withType(JavaCompile).configureEach {
119-
it.options.release = 23
110+
it.options.release = 25
120111
}
121112

122113
java {
123-
sourceCompatibility = JavaVersion.VERSION_23
124-
targetCompatibility = JavaVersion.VERSION_23
114+
sourceCompatibility = JavaVersion.VERSION_25
115+
targetCompatibility = JavaVersion.VERSION_25
125116
}
126117

127118
test {

gradle.properties

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,19 @@ maven_group=dev.xpple
88
archives_base_name=seedmapper
99

1010
# Minecraft properties
11-
minecraft_version=1.21.11
12-
minecraft_version_dependency=>=1.21.11 <1.22
11+
minecraft_version=26.1-rc-2
12+
minecraft_version_dependency=>=26.1-rc.1 <26.2
1313

1414
# Fabric Properties
1515
# check these on https://fabricmc.net/develop
16-
# https://maven.parchmentmc.org/org/parchmentmc/data/
17-
fabric_api_version=0.139.4+1.21.11
18-
parchment_mappings=parchment-1.21.9:2025.10.05@zip
19-
fabric_loader_version=0.18.2
20-
fabric_loom_version=1.14-SNAPSHOT
16+
fabric_api_version=0.144.0+26.1
17+
fabric_loader_version=0.18.4
18+
fabric_loom_version=1.15-SNAPSHOT
2119

2220
# Library dependencies
23-
betterconfig_version=2.5.0
24-
clientarguments_version=1.11.6
25-
simplewaypoints_version=1.2.1
21+
betterconfig_version=2.6.0
22+
clientarguments_version=1.12.0
23+
simplewaypoints_version=1.3.0
2624

2725
# Optional library dependencies
2826
baritone_version=1.21.11-SNAPSHOT

gradle/wrapper/gradle-wrapper.jar

3.25 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jextract

Submodule jextract updated 45 files

src/main/java/dev/xpple/seedmapper/SeedMapper.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
import dev.xpple.seedmapper.util.SeedIdentifier;
3232
import dev.xpple.simplewaypoints.api.SimpleWaypointsAPI;
3333
import net.fabricmc.api.ClientModInitializer;
34-
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
3534
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
35+
import net.fabricmc.fabric.api.client.command.v2.ClientCommands;
3636
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
3737
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
38-
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
38+
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
3939
import net.fabricmc.loader.api.FabricLoader;
4040
import net.fabricmc.loader.api.ModContainer;
4141
import net.minecraft.client.KeyMapping;
@@ -57,7 +57,8 @@ public class SeedMapper implements ClientModInitializer {
5757

5858
private static final Logger LOGGER = LogUtils.getLogger();
5959

60-
public static final boolean BARITONE_AVAILABLE = FabricLoader.getInstance().getModContainer("baritone-meteor").isPresent();
60+
// FIXME
61+
public static final boolean BARITONE_AVAILABLE = false; // FabricLoader.getInstance().getModContainer("baritone-meteor").isPresent();
6162

6263
static {
6364
String libraryName = System.mapLibraryName("cubiomes");
@@ -82,7 +83,7 @@ public void onInitializeClient() {
8283
.registerGlobalChangeHook(event -> {
8384
if (event.config().equals("DevMode")) {
8485
try {
85-
ClientCommandManager.refreshCommandCompletions();
86+
ClientCommands.refreshCommandCompletions();
8687
} catch (IllegalStateException _) {
8788
}
8889
}
@@ -94,8 +95,8 @@ public void onInitializeClient() {
9495
SeedDatabaseHelper.fetchSeeds();
9596

9697
KeyMapping.Category category = KeyMapping.Category.register(Identifier.fromNamespaceAndPath(MOD_ID, MOD_ID));
97-
KeyMapping seedMapKeyMapping = KeyBindingHelper.registerKeyBinding(new KeyMapping("key.seedMap", InputConstants.KEY_M, category));
98-
KeyMapping minimapKeyMapping = KeyBindingHelper.registerKeyBinding(new KeyMapping("key.minimap", InputConstants.KEY_COMMA, category));
98+
KeyMapping seedMapKeyMapping = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.seedMap", InputConstants.KEY_M, category));
99+
KeyMapping minimapKeyMapping = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.minimap", InputConstants.KEY_COMMA, category));
99100
ClientTickEvents.END_CLIENT_TICK.register(minecraft -> {
100101
while (seedMapKeyMapping.consumeClick()) {
101102
minecraft.player.connection.sendCommand("sm:seedmap");

src/main/java/dev/xpple/seedmapper/command/CustomClientCommandSource.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,30 @@ public class CustomClientCommandSource extends ClientSuggestionProvider implemen
3838
private final Entity entity;
3939
private final Vec3 position;
4040
private final Vec2 rotation;
41-
private final ClientLevel world;
41+
private final ClientLevel level;
4242
private final Map<String, Object> meta;
4343

44-
public CustomClientCommandSource(ClientPacketListener listener, Minecraft minecraft, Entity entity, Vec3 position, Vec2 rotation, ClientLevel world, PermissionSet permissionSet, Map<String, Object> meta) {
44+
public CustomClientCommandSource(ClientPacketListener listener, Minecraft minecraft, Entity entity, Vec3 position, Vec2 rotation, ClientLevel level, PermissionSet permissionSet, Map<String, Object> meta) {
4545
super(listener, minecraft, permissionSet);
4646

4747
this.client = minecraft;
4848
this.entity = entity;
4949
this.position = position;
5050
this.rotation = rotation;
51-
this.world = world;
51+
this.level = level;
5252
this.meta = meta;
5353
}
5454

5555
public static CustomClientCommandSource of(FabricClientCommandSource source) {
5656
if (source instanceof CustomClientCommandSource custom) {
5757
return custom;
5858
}
59-
return new CustomClientCommandSource(source.getClient().getConnection(), source.getClient(), source.getEntity(), source.getPosition(), source.getRotation(), source.getWorld(), source.permissions(), new HashMap<>());
59+
return new CustomClientCommandSource(source.getClient().getConnection(), source.getClient(), source.getEntity(), source.getPosition(), source.getRotation(), source.getLevel(), source.permissions(), new HashMap<>());
6060
}
6161

6262
@Override
6363
public void sendFeedback(Component message) {
64-
this.client.gui.getChat().addMessage(message);
64+
this.client.gui.getChat().addClientSystemMessage(message);
6565
this.client.getNarrator().saySystemChatQueued(message);
6666
}
6767

@@ -96,8 +96,8 @@ public Vec2 getRotation() {
9696
}
9797

9898
@Override
99-
public ClientLevel getWorld() {
100-
return this.world;
99+
public ClientLevel getLevel() {
100+
return this.level;
101101
}
102102

103103
@Override
@@ -106,19 +106,19 @@ public ClientLevel getWorld() {
106106
}
107107

108108
public CustomClientCommandSource withEntity(Entity entity) {
109-
return new CustomClientCommandSource(this.client.getConnection(), this.client, entity, this.position, this.rotation, this.world, this.permissions(), this.meta);
109+
return new CustomClientCommandSource(this.client.getConnection(), this.client, entity, this.position, this.rotation, this.level, this.permissions(), this.meta);
110110
}
111111

112112
public CustomClientCommandSource withPosition(Vec3 position) {
113-
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, position, this.rotation, this.world, this.permissions(), this.meta);
113+
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, position, this.rotation, this.level, this.permissions(), this.meta);
114114
}
115115

116116
public CustomClientCommandSource withRotation(Vec2 rotation) {
117-
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, rotation, this.world, this.permissions(), this.meta);
117+
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, rotation, this.level, this.permissions(), this.meta);
118118
}
119119

120-
public CustomClientCommandSource withWorld(ClientLevel world) {
121-
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, this.rotation, world, this.permissions(), this.meta);
120+
public CustomClientCommandSource withLevel(ClientLevel level) {
121+
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, this.rotation, level, this.permissions(), this.meta);
122122
}
123123

124124
public CustomClientCommandSource withMeta(String key, Object value) {
@@ -139,7 +139,7 @@ public Pair<SeedResolutionArgument.SeedResolution.Method, SeedIdentifier> getSee
139139
case ONLINE_DATABASE -> {
140140
// match SeedCrackerX's key format
141141
String key = this.client.getConnection().getConnection().getRemoteAddress().toString();
142-
yield SeedDatabaseHelper.getSeed(key, this.getWorld().getBiomeManager().biomeZoomSeed);
142+
yield SeedDatabaseHelper.getSeed(key, this.getLevel().getBiomeManager().biomeZoomSeed);
143143
}
144144
};
145145
if (seed != null) {
@@ -155,10 +155,10 @@ public int getDimension() throws CommandSyntaxException {
155155
return (int) dimensionMeta;
156156
}
157157
try {
158-
return DimensionArgument.dimension().parse(new StringReader(this.getWorld().dimension().identifier().getPath()));
158+
return DimensionArgument.dimension().parse(new StringReader(this.getLevel().dimension().identifier().getPath()));
159159
} catch (CommandSyntaxException _) {
160160
}
161-
return inferDimension(this.getWorld().dimensionType());
161+
return inferDimension(this.getLevel().dimensionType());
162162
}
163163

164164
public int getVersion() throws CommandSyntaxException {

src/main/java/dev/xpple/seedmapper/command/arguments/VersionArgument.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public class VersionArgument implements ArgumentType<Integer> {
132132
.put("1.21.9", Cubiomes.MC_1_21_9())
133133
.put("1.21.10", Cubiomes.MC_1_21_9())
134134
.put("1.21.11", Cubiomes.MC_1_21_11())
135+
.put("26.1", Cubiomes.MC_1_21_11())
135136
.build();
136137
//</editor-fold>
137138

0 commit comments

Comments
 (0)