java.lang.Object
io.github.thebusybiscuit.slimefun4.utils.compatibility.VersionedSound

public final class VersionedSound extends Object
Sound 多版本兼容
Author:
ybw0014
  • Method Details

    • isEnum

      public static boolean isEnum()
    • getSoundName

      @Nonnull public static String getSoundName(@Nonnull org.bukkit.Sound sound)
      获取 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 - 名称无效