Sound
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import mods.botanypotstweaker.potinteraction.Sound;
Implements
Undocumented Interfaces
ISound
Members
static of(data as MapData) as Sound
static of(sound as SoundEvent, category as SoundSource, pitch as float, volume as float) as Sound
Create a new Sound object with the given parameters.script.zs
Returns: The created Sound object.
// Sound.of(sound as SoundEvent, category as SoundSource, pitch as float, volume as float) as Sound;Sound.of(mySoundEvent, mySoundSource, myFloat, myFloat);
Parameters:
pitch: float
Type: float
- The pitch of the sound. volume: float
Type: float
- The volume of the sound.
Return Type:
Sound