Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.sound.SoundType;

Link to g-

Name: getBreakSound

Return Type: SoundEvent

ZenScript
Copy
// SoundType.getBreakSound() as SoundEvent

mySoundType.getBreakSound();

Link to g--1

Name: getFallSound

Return Type: SoundEvent

ZenScript
Copy
// SoundType.getFallSound() as SoundEvent

mySoundType.getFallSound();

Link to g--2

Name: getHitSound

Return Type: SoundEvent

ZenScript
Copy
// SoundType.getHitSound() as SoundEvent

mySoundType.getHitSound();

Link to g--3

Name: getPitch

Return Type: float

ZenScript
Copy
// SoundType.getPitch() as float

mySoundType.getPitch();

Link to g--4

Name: getPlaceSound

Return Type: SoundEvent

ZenScript
Copy
// SoundType.getPlaceSound() as SoundEvent

mySoundType.getPlaceSound();

Link to g--5

Name: getStepSound

Return Type: SoundEvent

ZenScript
Copy
// SoundType.getStepSound() as SoundEvent

mySoundType.getStepSound();

Link to g--6

Name: getVolume

Return Type: float

ZenScript
Copy
// SoundType.getVolume() as float

mySoundType.getVolume();
NameTypeHas GetterHas SetterDescription
Name
breakSound
Type
SoundEvent
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
fallSound
Type
SoundEvent
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
hitSound
Type
SoundEvent
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
pitch
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
placeSound
Type
SoundEvent
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
stepSound
Type
SoundEvent
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
volume
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided