Skip to content

Commit 1fe4e69

Browse files
committed
[ALPHA] Port to 26.1-alpha.7
* dependency updates - Minecraft 26.1-snapshot-7 - Java 25 - fabric api 0.143.4+26.1 - fabric loader 0.18.4 - Gradle 9.3.0 - SoundCategories - fabric-loom -> net.fabricmc.fabric-loom 1.15 * mappings migration - yarn -> official
1 parent 647ab6f commit 1fe4e69

530 files changed

Lines changed: 1705 additions & 22050 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.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
build:
1919
strategy:
2020
matrix:
21-
java: [ 21 ]
21+
java: [ 25 ]
2222
os: [ ubuntu-latest ]
2323
runs-on: ${{ matrix.os }}
2424
steps:

build.gradle

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import com.google.gson.JsonParser
22
import com.google.gson.JsonPrimitive
33

44
plugins {
5-
id "fabric-loom"
5+
id 'net.fabricmc.fabric-loom'
66
id "maven-publish"
77
id 'com.palantir.git-version'
88
}
@@ -99,46 +99,28 @@ allprojects {
9999
}
100100

101101
var devLibsPaths = '**/build/devlibs/*-dev.jar'
102+
var libsPaths = '**/build/libs/*.jar'
102103
var sourcesPaths = '**/*-sources.jar'
103104

104105
dependencies {
105106
minecraft "com.mojang:minecraft:${project.minecraft_version}"
106-
mappings "net.fabricmc:yarn:${project.minecraft_version}${project.yarn_mappings}:v2"
107-
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
108-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
107+
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
108+
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
109109

110110
implementation include("me.lonefelidae16:groominglib:${project.groom_version}")
111111

112112
// <editor-fold desc="Extra Sounds modules">
113113
compileOnly include(project(path: 'logics'))
114-
// 1.21 family
115-
compileOnly include(project(path: 'versioned:es1.21.9'))
116-
compileOnly include(project(path: 'versioned:es1.21.6'))
117-
compileOnly include(project(path: 'versioned:es1.21.5'))
118-
compileOnly include(project(path: 'versioned:es1.21.4'))
119-
compileOnly include(project(path: 'versioned:es1.21.2'))
120-
compileOnly include(project(path: 'versioned:es1.21'))
121-
// 1.20 family
122-
compileOnly include(project(path: 'versioned:es1.20.5'))
123-
compileOnly include(project(path: 'versioned:es1.20.2'))
124-
compileOnly include(project(path: 'versioned:es1.20'))
125-
// 1.19 family
126-
compileOnly include(project(path: 'versioned:es1.19.4'))
127-
compileOnly include(project(path: 'versioned:es1.19.3'))
128-
compileOnly include(project(path: 'versioned:es1.19.1'))
129-
compileOnly include(project(path: 'versioned:es1.19'))
130-
// 1.18 family
131-
compileOnly include(project(path: 'versioned:es1.18.2'))
132-
compileOnly include(project(path: 'versioned:es1.18'))
114+
compileOnly include(project(path: 'versioned:es26.1'))
133115
// </editor-fold>
134116

135117
// Sound Categories modules
136118
compileOnly include(project(path: 'sound-categories'))
137119

138120
// DevLaunch
139-
runtimeOnly fileTree(dir: 'logics', exclude: [sourcesPaths], include: [devLibsPaths])
140-
runtimeOnly fileTree(dir: 'versioned', exclude: [sourcesPaths], include: [devLibsPaths])
141-
runtimeOnly fileTree(dir: 'sound-categories', exclude: [sourcesPaths], include: [devLibsPaths])
121+
runtimeOnly fileTree(dir: 'logics', exclude: [sourcesPaths], include: [devLibsPaths, libsPaths])
122+
runtimeOnly fileTree(dir: 'versioned', exclude: [sourcesPaths], include: [devLibsPaths, libsPaths])
123+
runtimeOnly fileTree(dir: 'sound-categories', exclude: [sourcesPaths], include: [devLibsPaths, libsPaths])
142124
}
143125

144126
jar {
@@ -151,12 +133,6 @@ publishing {
151133
publications {
152134
mavenJava(MavenPublication) {
153135
from components.java
154-
artifact(remapJar) {
155-
builtBy remapJar
156-
}
157-
artifact(sourcesJar) {
158-
builtBy remapSourcesJar
159-
}
160136
}
161137
}
162138

gradle.properties

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ org.gradle.caching=true
55
org.gradle.configureondemand=true
66
# Fabric Properties
77
# check these on https://fabricmc.net/develop/
8-
minecraft_version=1.21.11
9-
yarn_mappings=+build.4
8+
minecraft_version=26.1-snapshot-7
109
loader_version=0.18.4
11-
loom_version=1.14-SNAPSHOT
10+
loom_version=1.15-SNAPSHOT
1211
#Fabric api
13-
fabric_api_version=0.141.1+1.21.11
12+
fabric_api_version=0.143.4+26.1
1413
# Java
15-
java_lang_version=17
14+
java_lang_version=25
1615
# Mod Properties
1716
mod_version=3.0.0
1817
maven_group=dev.stashy
@@ -27,4 +26,4 @@ mod_page=https://github.com/lonefelidae16/extra-sounds/blob/dev/README.md
2726
mod_sources=https://github.com/lonefelidae16/extra-sounds
2827
mod_issues=https://github.com/lonefelidae16/extra-sounds/issues
2928
mod_license=CC0-1.0
30-
mod_support_lowest_mc=1.18
29+
mod_support_lowest_mc=26.1-alpha.1

gradle/wrapper/gradle-wrapper.jar

542 Bytes
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.3.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

logics/build.gradle

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom'
2+
id 'net.fabricmc.fabric-loom'
33
}
44

55
var extraSounds = project.parent
@@ -12,17 +12,12 @@ base {
1212

1313
dependencies {
1414
minecraft "com.mojang:minecraft:${extraSounds.minecraft_version}"
15-
mappings "net.fabricmc:yarn:${extraSounds.minecraft_version}${extraSounds.yarn_mappings}:v2"
16-
modImplementation "net.fabricmc:fabric-loader:${extraSounds.loader_version}"
15+
implementation "net.fabricmc:fabric-loader:${extraSounds.loader_version}"
1716

1817
implementation "me.lonefelidae16:groominglib:${extraSounds.groom_version}"
1918

20-
compileOnly project(path: ':sound-categories:shared')
19+
compileOnly project(path: ':sound-categories')
2120

2221
// Integrations
23-
modCompileOnly "maven.modrinth:midnightcontrols:${extraSounds.mn_ctrls_version}"
24-
}
25-
26-
loom {
27-
accessWidenerPath = file("src/main/resources/extrasounds.accesswidener")
28-
}
22+
compileOnly "maven.modrinth:midnightcontrols:${extraSounds.mn_ctrls_version}"
23+
}

logics/src/main/java/dev/stashy/extrasounds/logics/ExtraSounds.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import dev.stashy.extrasounds.sounds.SoundType;
77
import dev.stashy.extrasounds.sounds.Sounds;
88
import me.lonefelidae16.groominglib.api.PrefixableMessageFactory;
9-
import net.minecraft.util.Identifier;
9+
import net.minecraft.resources.Identifier;
1010
import org.apache.logging.log4j.LogManager;
1111
import org.apache.logging.log4j.Logger;
1212

@@ -46,7 +46,7 @@ public static Identifier getClickId(Identifier id, SoundType type) {
4646
)
4747
);
4848
}
49-
return Objects.requireNonNull(MAIN.generateIdentifier(ExtraSounds.MODID, "%s.%s.%s".formatted(prefix, namespace, path)));
49+
return Identifier.fromNamespaceAndPath(ExtraSounds.MODID, "%s.%s.%s".formatted(prefix, namespace, path));
5050
} catch (Exception ex) {
5151
ExtraSounds.LOGGER.error("Failed to create Click Id.", ex);
5252
}
@@ -66,6 +66,6 @@ public static Identifier generateIdentifier(String path) {
6666
}
6767

6868
public static Identifier generateIdentifier(String namespace, String path) {
69-
return MAIN.generateIdentifier(namespace, path);
69+
return Identifier.fromNamespaceAndPath(namespace, path);
7070
}
7171
}
Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,48 @@
11
package dev.stashy.extrasounds.logics;
22

33
import dev.stashy.soundcategories.CategoryLoader;
4-
import net.minecraft.sound.SoundCategory;
4+
import net.minecraft.sounds.SoundSource;
55

66
public final class Mixers implements CategoryLoader {
77
@Register(master = true, defaultLevel = 0.33f, preview = ExtraSounds.MODID + ":item.pickup_all")
8-
public static SoundCategory MASTER;
8+
public static SoundSource MASTER;
9+
910
@Register(preview = ExtraSounds.MODID + ":item.pickup_all")
10-
public static SoundCategory INVENTORY;
11+
public static SoundSource INVENTORY;
12+
1113
@Register(preview = ExtraSounds.MODID + ":hotbar_scroll")
12-
public static SoundCategory HOTBAR;
14+
public static SoundSource HOTBAR;
15+
1316
@Register(preview = ExtraSounds.MODID + ":chat.message")
14-
public static SoundCategory CHAT;
17+
public static SoundSource CHAT;
18+
1519
@Register(preview = ExtraSounds.MODID + ":chat.mention")
16-
public static SoundCategory CHAT_MENTION;
20+
public static SoundSource CHAT_MENTION;
21+
1722
@Register(toggle = true, preview = ExtraSounds.MODID + ":keyboard.screenshot")
18-
public static SoundCategory SCREENSHOT;
23+
public static SoundSource SCREENSHOT;
24+
1925
@Register(preview = {
2026
ExtraSounds.MODID + ":effect.add.positive",
2127
ExtraSounds.MODID + ":effect.add.negative"
2228
})
23-
public static SoundCategory EFFECTS;
29+
public static SoundSource EFFECTS;
30+
2431
@Register(preview = ExtraSounds.MODID + ":keyboard.type")
25-
public static SoundCategory TYPING;
32+
public static SoundSource TYPING;
33+
2634
@Register(preview = ExtraSounds.MODID + ":action.bow")
27-
public static SoundCategory ITEM_INTR;
35+
public static SoundSource ITEM_INTR;
36+
2837
@Register(preview = {
2938
ExtraSounds.MODID + ":action.redstone_component.on",
3039
ExtraSounds.MODID + ":action.redstone_component.off"
3140
})
32-
public static SoundCategory BLOCK_INTR;
41+
public static SoundSource BLOCK_INTR;
42+
3343
@Register(defaultLevel = 0.f, preview = ExtraSounds.MODID + ":entity.poof")
34-
public static SoundCategory ENTITY;
44+
public static SoundSource ENTITY;
45+
3546
@Register(toggle = true, preview = ExtraSounds.MODID + ":item.drop")
36-
public static SoundCategory ITEM_DROP;
47+
public static SoundSource ITEM_DROP;
3748
}

0 commit comments

Comments
 (0)