generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[publish beta]
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/main/java/com/github/zly2006/reden/mixin/dynamicSound/MixinSoundManager.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,25 @@ | ||
package com.github.zly2006.reden.mixin.dynamicSound; | ||
|
||
import net.minecraft.client.sound.SoundManager; | ||
import net.minecraft.client.sound.WeightedSoundSet; | ||
import net.minecraft.resource.Resource; | ||
import net.minecraft.util.Identifier; | ||
import org.apache.commons.lang3.NotImplementedException; | ||
import org.spongepowered.asm.mixin.Final; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import java.io.File; | ||
import java.util.Map; | ||
|
||
@Mixin(SoundManager.class) | ||
public class MixinSoundManager { | ||
@Shadow @Final private Map<Identifier, Resource> soundResources; | ||
|
||
@Shadow @Final private Map<Identifier, WeightedSoundSet> sounds; | ||
|
||
private void addSound(Identifier identifier, File file) { | ||
// todo | ||
throw new NotImplementedException(); | ||
} | ||
} |
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