Record Class YAudioSourceManagers
java.lang.Object
java.lang.Record
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.music.backend.YAudioSourceManagers
public record YAudioSourceManagers(com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers audioSourceManagers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionYAudioSourceManagers(com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers audioSourceManagers) Creates an instance of aYAudioSourceManagersrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.sedmelluq.discord.lavaplayer.source.AudioSourceManagersReturns the value of theaudioSourceManagersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static voidregisterLocalSource(@NotNull PlayerManager playerManager) Registers the local file source manager to the specified player manager.static voidregisterLocalSource(@NotNull PlayerManager playerManager, com.sedmelluq.discord.lavaplayer.container.MediaContainerRegistry containerRegistry) Registers the local file source manager to the specified player manager.static voidregisterRemoteSources(@NotNull PlayerManager playerManager) SeeregisterRemoteSources(PlayerManager, MediaContainerRegistry), but with default containers.static voidregisterRemoteSources(@NotNull PlayerManager playerManager, com.sedmelluq.discord.lavaplayer.container.MediaContainerRegistry containerRegistry) Registers all built-in remote audio sources to the specified player manager.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
YAudioSourceManagers
public YAudioSourceManagers(com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers audioSourceManagers) Creates an instance of aYAudioSourceManagersrecord class.- Parameters:
audioSourceManagers- the value for theaudioSourceManagersrecord component
-
-
Method Details
-
registerRemoteSources
SeeregisterRemoteSources(PlayerManager, MediaContainerRegistry), but with default containers. -
registerRemoteSources
public static void registerRemoteSources(@NotNull @NotNull PlayerManager playerManager, com.sedmelluq.discord.lavaplayer.container.MediaContainerRegistry containerRegistry) Registers all built-in remote audio sources to the specified player manager. Local file audio source must be registered separately.- Parameters:
playerManager- Player manager to register the source managers tocontainerRegistry- Media container registry to be used by any probing sources.
-
registerLocalSource
Registers the local file source manager to the specified player manager.- Parameters:
playerManager- Player manager to register the source manager to
-
registerLocalSource
public static void registerLocalSource(@NotNull @NotNull PlayerManager playerManager, com.sedmelluq.discord.lavaplayer.container.MediaContainerRegistry containerRegistry) Registers the local file source manager to the specified player manager.- Parameters:
playerManager- Player manager to register the source manager tocontainerRegistry- Media container registry to be used by the local source.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
audioSourceManagers
public com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers audioSourceManagers()Returns the value of theaudioSourceManagersrecord component.- Returns:
- the value of the
audioSourceManagersrecord component
-