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