9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

添加todo

This commit is contained in:
XiaoMoMi
2025-06-18 04:39:35 +08:00
parent e9411f390f
commit b6a384828d
3 changed files with 4 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import java.util.Map;
public record SoundData(Key id, float volume, float pitch) {
// todo 支持范围音量音调
public static SoundData create(Object obj, float volume, float pitch) {
if (obj instanceof String key) {
return new SoundData(Key.of(key), volume, pitch);