mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-30 15:42:01 -04:00
sound group extract name
This commit is contained in:
parent
2fa384be01
commit
5c15bdd5eb
@ -20,7 +20,10 @@ object SoundGroupGenerator : Generator(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
val data = compound()
|
val data = compound()
|
||||||
val group = field.get(null) as BlockSoundGroup
|
val group = field.get(null)
|
||||||
|
if (group !is BlockSoundGroup) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
val id = ids.size
|
val id = ids.size
|
||||||
ids[group] = id
|
ids[group] = id
|
||||||
|
|
||||||
@ -30,6 +33,7 @@ object SoundGroupGenerator : Generator(
|
|||||||
if (group.volume != 1.0f) {
|
if (group.volume != 1.0f) {
|
||||||
data["sound_type_pitch"] = group.pitch
|
data["sound_type_pitch"] = group.pitch
|
||||||
}
|
}
|
||||||
|
data["name"] = field.name.lowercase()
|
||||||
data["break_sound_type"] = Registry.SOUND_EVENT.getRawId(group.breakSound)
|
data["break_sound_type"] = Registry.SOUND_EVENT.getRawId(group.breakSound)
|
||||||
data["step_sound_type"] = Registry.SOUND_EVENT.getRawId(group.stepSound)
|
data["step_sound_type"] = Registry.SOUND_EVENT.getRawId(group.stepSound)
|
||||||
data["place_sound_type"] = Registry.SOUND_EVENT.getRawId(group.placeSound)
|
data["place_sound_type"] = Registry.SOUND_EVENT.getRawId(group.placeSound)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user