-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1966 from mystchonky/record-fix
fix Hellforged Record jukebox interaction
- Loading branch information
Showing
7 changed files
with
31 additions
and
42 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/items/music_discs.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,5 @@ | ||
{ | ||
"values": [ | ||
"bloodmagic:bleedingedge" | ||
] | ||
} |
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
17 changes: 0 additions & 17 deletions
17
src/main/java/wayoftime/bloodmagic/client/sounds/SoundRegisterListener.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/main/java/wayoftime/bloodmagic/client/sounds/SoundRegistrator.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/java/wayoftime/bloodmagic/client/sounds/SoundRegistry.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,19 @@ | ||
package wayoftime.bloodmagic.client.sounds; | ||
|
||
import net.minecraft.sounds.SoundEvent; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
import net.minecraftforge.registries.RegistryObject; | ||
import wayoftime.bloodmagic.BloodMagic; | ||
|
||
public class SoundRegistry | ||
{ | ||
|
||
public static final DeferredRegister<SoundEvent> SOUNDS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, BloodMagic.MODID); | ||
public static final RegistryObject<SoundEvent> BLEEDING_EDGE_MUSIC = SOUNDS.register("bleedingedge" , ()-> addSoundsToRegistry("bleedingedge")); | ||
|
||
private static SoundEvent addSoundsToRegistry(String soundId) | ||
{ | ||
return SoundEvent.createVariableRangeEvent(BloodMagic.rl(soundId)); | ||
} | ||
} |
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