Verwendungen von Klasse
net.risingworld.api.assets.SoundAsset
-
Verwendungen von SoundAsset in net.risingworld.api.assets
Modifizierer und TypMethodeBeschreibungstatic SoundAsset
SoundAsset.load
(byte[] data) static SoundAsset
SoundAsset.loadFromAssetBundle
(AssetBundle bundle, String path) static SoundAsset
SoundAsset.loadFromFile
(String file) Creates a new sound asset referencing a file on harddrive.static SoundAsset
SoundAsset.loadFromFile
(String file, boolean streamed) Creates a new sound asset referencing a file on harddrive.static SoundAsset
SoundAsset.loadFromPlugin
(Plugin plugin, String resource) Creates a new sound asset and loads the sound from the plugin jar file.static SoundAsset
SoundAsset.loadFromURL
(String url) Loads a stream from an URL. -
Verwendungen von SoundAsset in net.risingworld.api.objects
Modifizierer und TypMethodeBeschreibungPlayer.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.