Uses of Class
net.risingworld.api.assets.SoundAsset
Packages that use SoundAsset
-
Uses of SoundAsset in net.risingworld.api.assets
Methods in net.risingworld.api.assets that return SoundAssetModifier and TypeMethodDescriptionstatic SoundAssetSoundAsset.load(byte[] data) static SoundAssetSoundAsset.loadFromAssetBundle(AssetBundle bundle, String path) static SoundAssetSoundAsset.loadFromFile(String file) Creates a new sound asset referencing a file on harddrive.static SoundAssetSoundAsset.loadFromFile(String file, boolean streamed) Creates a new sound asset referencing a file on harddrive.static SoundAssetSoundAsset.loadFromPlugin(Plugin plugin, String resource) Creates a new sound asset and loads the sound from the plugin jar file.static SoundAssetSoundAsset.loadFromURL(String url) Loads a stream from an URL. -
Uses of SoundAsset in net.risingworld.api.objects
Methods in net.risingworld.api.objects with parameters of type SoundAssetModifier and TypeMethodDescriptionPlayer.playSound(SoundAsset sound) Plays a custom 2D sound (i.e it can be heard everywhere, but only by this player).Player.playSound(SoundAsset sound, boolean loop, float volume, float pitch, float minDistance, float maxDistance, Vector3f position) Plays a custom 3D sound at the given position.Player.playSound(SoundAsset sound, boolean loop, float volume, float pitch, Vector3f position) Plays a custom 3D sound at the given position.Player.playSound(SoundAsset sound, Vector3f position) Plays a custom 3D sound at the given position.