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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user