Class sound_v1_16_R3

    • Constructor Detail

      • sound_v1_16_R3

        public sound_v1_16_R3()
    • Method Detail

      • getForCurrentVersion

        public org.bukkit.Sound getForCurrentVersion​(String v1_8,
                                                     String v1_12,
                                                     String v1_13)
        Description copied from interface: SoundSupport
        Get sound for current server version.
        Specified by:
        getForCurrentVersion in interface SoundSupport
        Parameters:
        v1_8 - sound name. Will return this if server version is 1.8.
        v1_12 - sound name. Will return this is server version is in range [1.9,1.12]
        v1_13 - sound name. Will return this if server version is in range [1.13,)
        Returns:
        right sound for current version.
      • isSound

        public boolean isSound​(String name)
        Description copied from interface: SoundSupport
        Check if the given sound is valid for the current server version.
        Specified by:
        isSound in interface SoundSupport
        Parameters:
        name - sound name.
        Returns:
        true if given name is an existing sound.
      • getSound

        @Nullable
        public org.bukkit.Sound getSound​(String name)
        Description copied from interface: SoundSupport
        Get sound by name.
        Specified by:
        getSound in interface SoundSupport
        Parameters:
        name - sound name.
        Returns:
        Sound with given name. Null if does not exist.
      • getSoundOr

        public org.bukkit.Sound getSoundOr​(String name,
                                           org.bukkit.Sound alternative)
        Description copied from interface: SoundSupport
        Get sound by name if valid or fallback sound.
        Specified by:
        getSoundOr in interface SoundSupport
        Parameters:
        name - sound name.
        alternative - alternative if not found.
        Returns:
        sound with given name or alternative if not found.