ISoundTypeDefinition

Link to isoundtypedefinition

An ISoundTypeDefinition object represents a sound (type) in the game. A sound type is almost always bound to one or multiple blocks.

Dieses Paket importieren

Link to dieses-paket-importieren

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.SoundType;

Calling an ISoundTypeDefinition object

Link to calling-an-isoundtypedefinition-object

You can get such an object using the Sound Type Bracket Handler:
<soundtype:wood>

ZenMethods without parameters

Link to zenmethods-without-parameters

ZenMethodRückgabetypDefinition
ZenMethod
getVolume()
Rückgabetyp
float
Definition
Returns the type's volume
ZenMethod
getPitch()
Rückgabetyp
float
Definition
Returns the type's pitch
ZenMethod
getBreakSound()
Rückgabetyp
ISoundEventDefinition
Definition
Returns the sound that occurs when the related block is broken
ZenMethod
getStepSound()
Rückgabetyp
ISoundEventDefinition
Definition
Returns the sound that occurs when the related block is stepped on
ZenMethod
getPlaceSound()
Rückgabetyp
ISoundEventDefinition
Definition
Returns the sound that occurs when the related block is placed
ZenMethod
getHitSound()
Rückgabetyp
ISoundEventDefinition
Definition
Returns the sound that occurs when the related block is hit
ZenMethod
getFallSound()
Rückgabetyp
ISoundEventDefinition
Definition
Returns the sound that occurs when the related block is falling