Skip to content

Commit 9c6c9c2

Browse files
committed
[ALPHA] Port to 25w33a
* update dependencies - yarn mappings 25w33a+build.8 - fabric api 0.131.3+1.21.9 - fabric loader 0.17.2 - SoundCategories - Gradle 9.0.0 * new sounds - `item.category.gear.copper` - Copper items, tools, armor * new module - `:versioned:es1.21.9` * into versioned module - `logics.mixin.action.entity.LivingEntityMixin`
1 parent e5d0ff1 commit 9c6c9c2

85 files changed

Lines changed: 2082 additions & 113 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dependencies {
102102
// <editor-fold desc="Extra Sounds modules">
103103
compileOnly include(project(path: 'logics'))
104104
// 1.21 family
105-
// compileOnly include(project(path: 'versioned:es1.21.9'))
105+
compileOnly include(project(path: 'versioned:es1.21.9'))
106106
compileOnly include(project(path: 'versioned:es1.21.6'))
107107
compileOnly include(project(path: 'versioned:es1.21.5'))
108108
compileOnly include(project(path: 'versioned:es1.21.4'))

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx4G
33
org.gradle.parallel=true
44
# Fabric Properties
55
# check these on https://fabricmc.net/develop/
6-
minecraft_version=1.21.8
7-
yarn_mappings=+build.1
8-
loader_version=0.16.14
6+
minecraft_version=25w33a
7+
yarn_mappings=+build.8
8+
loader_version=0.17.2
99
loom_version=1.11-SNAPSHOT
1010
#Fabric api
11-
fabric_api_version=0.129.0+1.21.8
11+
fabric_api_version=0.131.3+1.21.9
1212
# Java
1313
java_lang_version=17
1414
# Mod Properties

gradle/wrapper/gradle-wrapper.jar

1.65 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-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-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.

logics/src/main/java/dev/stashy/extrasounds/logics/impl/AbstractInteractionHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import dev.stashy.extrasounds.logics.ExtraSounds;
44
import dev.stashy.extrasounds.logics.impl.state.ActionResultState;
5+
import dev.stashy.extrasounds.logics.mixin.access.FlowerPotBlockInvoker;
56
import dev.stashy.extrasounds.sounds.Sounds;
67
import net.minecraft.block.*;
78
import net.minecraft.block.entity.BlockEntity;
@@ -100,7 +101,7 @@ public final void onUse(ClientPlayerEntity player, BlockPos blockPos, ActionResu
100101
(this.block instanceof FlowerPotBlock potBlock) &&
101102
actionResult == ActionResultState.SUCCESS
102103
) {
103-
if (!potBlock.isEmpty()) {
104+
if (!((FlowerPotBlockInvoker) potBlock).invokeIsEmpty()) {
104105
// Take from pot
105106
ExtraSounds.MANAGER.blockInteract(potBlock.getContent().asItem(), blockPos);
106107
} else {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package dev.stashy.extrasounds.logics.mixin.access;
2+
3+
import net.minecraft.block.FlowerPotBlock;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.gen.Invoker;
6+
7+
@Mixin(FlowerPotBlock.class)
8+
public interface FlowerPotBlockInvoker {
9+
@Invoker("isEmpty")
10+
boolean invokeIsEmpty();
11+
}

logics/src/main/java/dev/stashy/extrasounds/sounds/Categories.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ private Gear() {
4949
public static final VersionedSoundEventWrapper TURTLE = ExtraSounds.createEvent("item.category.gear.turtle");
5050
public static final VersionedSoundEventWrapper ARMADILLO = ExtraSounds.createEvent("item.category.gear.armadillo");
5151
public static final VersionedSoundEventWrapper WOOD = ExtraSounds.createEvent("item.category.gear.wood");
52+
public static final VersionedSoundEventWrapper COPPER = ExtraSounds.createEvent("item.category.gear.copper");
5253
}
5354
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
accessWidener v2 named
2-
accessible method net/minecraft/block/FlowerPotBlock isEmpty ()Z
32
accessible class net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$LockableSlot

logics/src/main/resources/extrasounds.logics.mixins.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"package": "dev.stashy.extrasounds.logics.mixin",
55
"compatibilityLevel": "JAVA_17",
66
"client": [
7-
"action.entity.LivingEntityMixin",
7+
"access.FlowerPotBlockInvoker",
8+
89
"hotbar.MinecraftClientMixin",
910
"inventory.ClientPlayerInteractionManagerMixin",
1011
"inventory.HandledScreenMixin",

0 commit comments

Comments
 (0)