Class VersionedSound
java.lang.Object
io.github.thebusybiscuit.slimefun4.utils.compatibility.VersionedSound
Sound 多版本兼容
- Author:
- ybw0014
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetSoundName(org.bukkit.Sound sound) 获取 Sound 的名称static booleanisEnum()static org.bukkit.SoundvalueOf() 方法兼容
-
Method Details
-
isEnum
public static boolean isEnum() -
getSoundName
获取 Sound 的名称- Parameters:
sound- Sound 对象- Returns:
- Sound 名称
-
valueOf
@Nonnull public static org.bukkit.Sound valueOf(@Nonnull String name) throws IllegalArgumentException valueOf() 方法兼容- Parameters:
name- Sound 名称- Returns:
- Sound 对象
- Throws:
IllegalArgumentException- 名称无效
-