fabric/fabric-sound-api-v1/build.gradle
Jonathan Coates c4f28df547
Add Sound API to allow sound instances to play custom audio streams (#2558)
* Allow sound instances to play custom audio streams

Adds a new interface FabricSoundInstance, which is injected into
vanilla's SoundInstance interface.

When loading an audio stream, the SoundSystem now calls
FabricSoundInstance.getAudioStream, allowing mods to provide their
own audio streams.

* Some post-review cleanup

 - Manually add the client sources as an interface injection source set,
   allowing us to put everything in the src/client dir (<3 modmuss50).

 - Apply some formatting changes from apple502j.

* Document the empty sound and its usage in sounds.json

* Fix one remaining @literal -> @code

* Fix checkstyle issues
2022-10-16 15:09:44 +01:00

14 lines
282 B
Groovy

archivesBaseName = "fabric-sound-api-v1"
version = getSubprojectVersion(project)
loom {
interfaceInjection {
interfaceInjectionSourceSets.add sourceSets.client
}
}
testDependencies(project, [
':fabric-api-base',
':fabric-resource-loader-v0',
':fabric-command-api-v2'
])