public final class Sounds extends ResourcesContainer<Sound>
Modifier and Type | Method and Description |
---|---|
Sound |
load(SoundResource resource) |
protected Sound |
load(java.net.URL resourceName)
Loads the sound from the specified path and returns it.
|
add, add, addClearedListener, addContainerListener, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAlias, getAll, getAsync, getResources, remove, remove, removeClearedListener, removeContainerListener, tryGet, tryGet
protected Sound load(java.net.URL resourceName) throws java.lang.Exception
load
in class ResourcesContainer<Sound>
resourceName
- The path of the file to be loaded.(Can be relative or absolute)java.lang.Exception
public Sound load(SoundResource resource)