Skip to content

Commit 3f93e72

Browse files
committed
[ALPHA] Port to 25w34b
* update dependencies - yarn mappings 25w34b+build.1 - fabric api 0.132.1+1.21.9 - fabric loader 0.17.2 - SoundCategories * 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 ff0c517 commit 3f93e72

83 files changed

Lines changed: 2081 additions & 112 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: 3 additions & 3 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
6+
minecraft_version=25w34b
77
yarn_mappings=+build.1
8-
loader_version=0.16.14
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.132.1+1.21.9
1212
# Java
1313
java_lang_version=17
1414
# Mod Properties

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",

settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pluginManagement {
1616
// SoundCategories modules
1717
include 'sound-categories', 'sound-categories:shared'
1818
// 1.21 family
19-
include 'sound-categories:versioned:sc1.21.6', 'sound-categories:versioned:sc1.21'
19+
include 'sound-categories:versioned:sc1.21.9', 'sound-categories:versioned:sc1.21.6', 'sound-categories:versioned:sc1.21'
2020
// 1.20 family
2121
include 'sound-categories:versioned:sc1.20.5', 'sound-categories:versioned:sc1.20.3', 'sound-categories:versioned:sc1.20.2', 'sound-categories:versioned:sc1.20'
2222
// 1.19 family
@@ -27,7 +27,7 @@ include 'sound-categories:versioned:sc1.18'
2727
// ExtraSounds modules
2828
include 'logics'
2929
// 1.21 family
30-
include /*'versioned:es1.21.9', */'versioned:es1.21.6', 'versioned:es1.21.5', 'versioned:es1.21.4', 'versioned:es1.21.2', 'versioned:es1.21'
30+
include 'versioned:es1.21.9', 'versioned:es1.21.6', 'versioned:es1.21.5', 'versioned:es1.21.4', 'versioned:es1.21.2', 'versioned:es1.21'
3131
// 1.20 family
3232
include 'versioned:es1.20.5', 'versioned:es1.20.2', 'versioned:es1.20'
3333
// 1.19 family

src/main/resources/assets/extrasounds/sounds.json

Lines changed: 59 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,16 @@
328328
}
329329
]
330330
},
331+
"item.category.gear.copper": {
332+
"sounds": [
333+
{
334+
"name": "minecraft:item.armor.equip_copper",
335+
"volume": 0.7,
336+
"pitch": 1.4,
337+
"type": "event"
338+
}
339+
]
340+
},
331341
"item.category.hay": {
332342
"sounds": [
333343
{
@@ -1066,6 +1076,15 @@
10661076
}
10671077
]
10681078
},
1079+
"item.pickup.minecraft.copper_nugget": {
1080+
"replace": true,
1081+
"sounds": [
1082+
{
1083+
"name": "extrasounds:item.category.metal_bits",
1084+
"type": "event"
1085+
}
1086+
]
1087+
},
10691088
"item.pickup.minecraft.damaged_anvil": {
10701089
"replace": true,
10711090
"sounds": [
@@ -1094,6 +1113,46 @@
10941113
}
10951114
]
10961115
},
1116+
"item.pickup.minecraft.golden_horse_armor": {
1117+
"replace": true,
1118+
"sounds": [
1119+
{
1120+
"name": "extrasounds:item.category.gear.golden",
1121+
"pitch": 0.8,
1122+
"type": "event"
1123+
}
1124+
]
1125+
},
1126+
"item.pickup.minecraft.iron_horse_armor": {
1127+
"replace": true,
1128+
"sounds": [
1129+
{
1130+
"name": "extrasounds:item.category.gear.iron",
1131+
"pitch": 0.8,
1132+
"type": "event"
1133+
}
1134+
]
1135+
},
1136+
"item.pickup.minecraft.copper_horse_armor": {
1137+
"replace": true,
1138+
"sounds": [
1139+
{
1140+
"name": "extrasounds:item.category.gear.copper",
1141+
"pitch": 0.8,
1142+
"type": "event"
1143+
}
1144+
]
1145+
},
1146+
"item.pickup.minecraft.leather_horse_armor": {
1147+
"replace": true,
1148+
"sounds": [
1149+
{
1150+
"name": "extrasounds:item.category.gear.leather",
1151+
"pitch": 0.8,
1152+
"type": "event"
1153+
}
1154+
]
1155+
},
10971156
"item.pickup.minecraft.dragon_breath": {
10981157
"replace": true,
10991158
"sounds": [
@@ -1318,16 +1377,6 @@
13181377
}
13191378
]
13201379
},
1321-
"item.pickup.minecraft.golden_horse_armor": {
1322-
"replace": true,
1323-
"sounds": [
1324-
{
1325-
"name": "extrasounds:item.category.gear.golden",
1326-
"pitch": 0.8,
1327-
"type": "event"
1328-
}
1329-
]
1330-
},
13311380
"item.pickup.minecraft.gunpowder": {
13321381
"replace": true,
13331382
"sounds": [
@@ -1377,16 +1426,6 @@
13771426
}
13781427
]
13791428
},
1380-
"item.pickup.minecraft.iron_horse_armor": {
1381-
"replace": true,
1382-
"sounds": [
1383-
{
1384-
"name": "extrasounds:item.category.gear.iron",
1385-
"pitch": 0.8,
1386-
"type": "event"
1387-
}
1388-
]
1389-
},
13901429
"item.pickup.minecraft.iron_ingot": {
13911430
"replace": true,
13921431
"sounds": [
@@ -1436,16 +1475,6 @@
14361475
}
14371476
]
14381477
},
1439-
"item.pickup.minecraft.leather_horse_armor": {
1440-
"replace": true,
1441-
"sounds": [
1442-
{
1443-
"name": "extrasounds:item.category.gear.leather",
1444-
"pitch": 0.8,
1445-
"type": "event"
1446-
}
1447-
]
1448-
},
14491478
"item.pickup.minecraft.magma_cream": {
14501479
"replace": true,
14511480
"sounds": [

0 commit comments

Comments
 (0)