-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfb0fbf
commit 8a60e0f
Showing
20 changed files
with
185 additions
and
20 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/lang/en_us.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"item.pswg_gadgets.thermal_detonator": "Thermal Detonator", | ||
"item.pswg_gadgets.fragmentation_grenade": "Fragmentation Grenade", | ||
"tag.block.pswg_gadgets.fragmentation_destroy": "Fragmenetation Grenade Destroy" | ||
} |
62 changes: 62 additions & 0 deletions
62
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"shared.arm": { | ||
"subtitle": "subtitle.pswg_gadgets.arm", | ||
"sounds": [ | ||
"pswg_gadgets:arm" | ||
] | ||
}, | ||
"shared.disarm": { | ||
"subtitle": "subtitle.pswg_gadgets.disarm", | ||
"sounds": [ | ||
"pswg_gadgets:disarm" | ||
] | ||
}, | ||
"shared.throw": { | ||
"subtitle": "subtitle.pswg_gadgets.grenade_throw", | ||
"sounds": [ | ||
"pswg_gadgets:throw" | ||
] | ||
}, | ||
"thermaldetonator.beep": { | ||
"subtitle": "subtitle.pswg_gadgets.thermaldetonator.beep", | ||
"sounds": [ | ||
"pswg_gadgets:tdet_beep_loop" | ||
] | ||
}, | ||
"thermaldetonator.explode": { | ||
"subtitle": "subtitle.pswg_gadgets.thermaldetonator.explode", | ||
"sounds": [ | ||
"pswg_gadgets:tdet_explosion" | ||
] | ||
}, | ||
"fragmentationgrenade.explode1": { | ||
"subtitle": "subtitle.pswg_gadgets.fragmentationgrenade.explode", | ||
"sounds": [ | ||
"pswg_gadgets:c25_explosion_1" | ||
] | ||
}, | ||
"fragmentationgrenade.explode2": { | ||
"subtitle": "subtitle.pswg_gadgets.fragmentationgrenade.explode", | ||
"sounds": [ | ||
"pswg_gadgets:c25_explosion_2" | ||
] | ||
}, | ||
"fragmentationgrenade.explode3": { | ||
"subtitle": "subtitle.pswg_gadgets.fragmentationgrenade.explode", | ||
"sounds": [ | ||
"pswg_gadgets:c25_explosion_3" | ||
] | ||
}, | ||
"fragmentationgrenade.explode4": { | ||
"subtitle": "subtitle.pswg_gadgets.fragmentationgrenade.explode", | ||
"sounds": [ | ||
"pswg_gadgets:c25_explosion_4" | ||
] | ||
}, | ||
"fragmentationgrenade.beep": { | ||
"subtitle": "subtitle.pswg_gadgets.fragmentationgrenade.beep", | ||
"sounds": [ | ||
"pswg_gadgets_gadgets:c25_beep_loop" | ||
] | ||
} | ||
} |
Binary file added
BIN
+6.21 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/arm.ogg
Binary file not shown.
Binary file added
BIN
+17.7 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/c25_beep_loop.ogg
Binary file not shown.
Binary file added
BIN
+45.8 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/c25_explosion_1.ogg
Binary file not shown.
Binary file added
BIN
+55.1 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/c25_explosion_2.ogg
Binary file not shown.
Binary file added
BIN
+46.2 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/c25_explosion_3.ogg
Binary file not shown.
Binary file added
BIN
+70.8 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/c25_explosion_4.ogg
Binary file not shown.
Binary file added
BIN
+7.01 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/disarm.ogg
Binary file not shown.
Binary file added
BIN
+19.4 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/tdet_beep_loop.ogg
Binary file not shown.
Binary file added
BIN
+16.6 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/tdet_explosion.ogg
Binary file not shown.
Binary file added
BIN
+5.9 KB
projects/pswg_gadgets/src/main/generated/assets/pswg_gadgets/sounds/throw.ogg
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
projects/pswg_gadgets/src/main/java/dev/pswg/item/ExplosionSoundGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package dev.pswg.item; | ||
|
||
import dev.pswg.Gadgets; | ||
import net.minecraft.entity.LivingEntity; | ||
|
||
public abstract class ExplosionSoundGroup | ||
{ | ||
public abstract void playArmSound(LivingEntity player); | ||
|
||
public abstract void playDisarmSound(LivingEntity player); | ||
|
||
public abstract void playThrowSound(LivingEntity player); | ||
|
||
public abstract void playBeepingSound(LivingEntity player); | ||
} | ||
|
||
class ThermalDetonatorSoundGroup extends ExplosionSoundGroup | ||
{ | ||
|
||
@Override | ||
public void playArmSound(LivingEntity player) | ||
{ | ||
player.playSound(Gadgets.ARM, 1f, 1f); | ||
} | ||
|
||
@Override | ||
public void playDisarmSound(LivingEntity player) | ||
{ | ||
player.playSound(Gadgets.DISARM, 1f, 1f); | ||
} | ||
|
||
@Override | ||
public void playThrowSound(LivingEntity player) | ||
{ | ||
player.playSound(Gadgets.THROW, 1f, 1f); | ||
} | ||
|
||
@Override | ||
public void playBeepingSound(LivingEntity player) | ||
{ | ||
//SoundHelper.playDetonatorItemSound(player); | ||
} | ||
} | ||
|
||
class FragmentationGrenadeSoundGroup extends ExplosionSoundGroup | ||
{ | ||
|
||
@Override | ||
public void playArmSound(LivingEntity player) | ||
{ | ||
player.playSound(Gadgets.ARM, 1f, 1f); | ||
} | ||
|
||
@Override | ||
public void playDisarmSound(LivingEntity player) | ||
{ | ||
player.playSound(Gadgets.DISARM, 1f, 1f); | ||
} | ||
|
||
@Override | ||
public void playThrowSound(LivingEntity player) | ||
{ | ||
player.playSound(Gadgets.THROW, 1f, 1f); | ||
} | ||
|
||
@Override | ||
public void playBeepingSound(LivingEntity player) | ||
{ | ||
//SoundHelper.playFragmentationGrenadeItemSound(player); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters