Java 类net.minecraftforge.client.event.sound.SoundEvent.SoundSourceEvent 实例源码

项目:DynamicSurroundings    文件:SoundManagerReplacement.java   
@SubscribeEvent
public void onSoundSourceEvent(@Nonnull final SoundSourceEvent event) {
    final ISound sound = event.getSound();
    if (sound instanceof BasicSound<?>) {
        ((BasicSound<?>) sound).setId(event.getUuid());
    }
}