Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

SoundTypeBuilder

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import contenttweaker.builder.vanilla.sound.SoundTypeBuilder;

Methods

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.breakSound(sound as SimpleReference<SoundEvent>) as SoundTypeBuilder
ParameterType
Parameter
sound
Type
SimpleReference<SoundEvent>

Return Type: SimpleReference<SoundType>

script.zs
SoundTypeBuilder.build(name as string) as SimpleReference<SoundType>
ParameterType
Parameter
name
Type
string

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.fallSound(sound as SimpleReference<SoundEvent>) as SoundTypeBuilder
ParameterType
Parameter
sound
Type
SimpleReference<SoundEvent>

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.hitSound(sound as SimpleReference<SoundEvent>) as SoundTypeBuilder
ParameterType
Parameter
sound
Type
SimpleReference<SoundEvent>

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.pitch(pitch as float) as SoundTypeBuilder
ParameterType
Parameter
pitch
Type
float

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.placeSound(sound as SimpleReference<SoundEvent>) as SoundTypeBuilder
ParameterType
Parameter
sound
Type
SimpleReference<SoundEvent>

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.stepSound(sound as SimpleReference<SoundEvent>) as SoundTypeBuilder
ParameterType
Parameter
sound
Type
SimpleReference<SoundEvent>

Return Type: SoundTypeBuilder

script.zs
SoundTypeBuilder.volume(volume as float) as SoundTypeBuilder
ParameterType
Parameter
volume
Type
float