Skip to content

Commit

Permalink
upgrade to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
LCLPYT committed Jun 13, 2024
1 parent 8d7ca85 commit 91a6edf
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ If you want to load a song from a file specified by a `Path`, you can use:

```java
Path path = Path.of("path", "to", "song.nbs");
Identifier id = new Identifier("myMod", "foo");
Identifier id = Identifier.of("myMod", "foo");
CheckedSong song;

try (var in = Files.newInputStream(path)) {
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
loader_version=0.15.10
minecraft_version=1.21
yarn_mappings=1.21+build.1
loader_version=0.15.11

# Mod Properties
maven_group=work.lclpnet.mods
archives_base_name=notica

# Dependencies
fabric_version=0.97.8+1.20.6
kibu_hooks_version=0.49.0+1.20.6
fabric_version=0.100.1+1.21
kibu_hooks_version=0.50.0+1.21
kibu_hook_api_version=1.3.0
kibu_translation_api_version=0.14.0+1.20.6
kibu_access_lib_version=0.12.0+1.20.6
kibu_translation_api_version=0.14.0+1.21
kibu_access_lib_version=0.15.0+1.21
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package work.lclpnet.notica.client;
package work.lclpnet.notica.mixin.client;

import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.network.packet.s2c.play.GameJoinS2CPacket;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package work.lclpnet.notica.client;
package work.lclpnet.notica.mixin.client;

import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package work.lclpnet.notica.client;
package work.lclpnet.notica.mixin.client;

import net.minecraft.client.sound.SoundInstance;
import net.minecraft.client.sound.SoundSystem;
Expand Down
2 changes: 1 addition & 1 deletion src/client/resources/notica.client.mixins.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"required": true,
"package": "work.lclpnet.notica.client",
"package": "work.lclpnet.notica.mixin.client",
"compatibilityLevel": "JAVA_21",
"injectors": {
"defaultRequire": 1
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/work/lclpnet/notica/NoticaInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ private void createDirectory(Path dir) {
* @return An identifier of this mod with the given path.
*/
public static Identifier identifier(String path) {
return new Identifier(MOD_ID, path);
return Identifier.of(MOD_ID, path);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public SoundEvent getExtendedSound(final @NotNull SoundEvent sound, byte key, sh
}

// create a new sound event
Identifier id = new Identifier(name);
Identifier id = Identifier.of(name);

SoundEventAccessor access = (SoundEventAccessor) sound;

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
],
"depends": {
"fabricloader": ">=0.15.10",
"minecraft": "~1.20.5",
"minecraft": "~1.21",
"java": ">=21",
"fabric-api": "*",
"kibu-hook-api": ">=1.3.0",
"kibu-hooks": ">=0.49.0",
"kibu-hooks": ">=0.50.0",
"kibu-translation-api": ">=0.14.0",
"kibu-access-lib": ">=0.12.0"
"kibu-access-lib": ">=0.15.0"
},
"suggests": {}
}

0 comments on commit 91a6edf

Please sign in to comment.