mirror of
https://github.com/FabricMC/fabric.git
synced 2024-12-11 00:31:05 -05:00
c4f28df547
* 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
14 lines
282 B
Groovy
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'
|
|
])
|