SoundType
Link to soundtype
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 Copyimport crafttweaker.api.sound.SoundType;
Methods
Link to methods
Name: getBreakSound
Return Type: SoundEvent
ZenScript Copy// SoundType.getBreakSound() as SoundEvent
mySoundType.getBreakSound();
Name: getFallSound
Return Type: SoundEvent
ZenScript Copy// SoundType.getFallSound() as SoundEvent
mySoundType.getFallSound();
Name: getHitSound
Return Type: SoundEvent
ZenScript Copy// SoundType.getHitSound() as SoundEvent
mySoundType.getHitSound();
Name: getPitch
Return Type: float
ZenScript Copy// SoundType.getPitch() as float
mySoundType.getPitch();
Name: getPlaceSound
Return Type: SoundEvent
ZenScript Copy// SoundType.getPlaceSound() as SoundEvent
mySoundType.getPlaceSound();
Name: getStepSound
Return Type: SoundEvent
ZenScript Copy// SoundType.getStepSound() as SoundEvent
mySoundType.getStepSound();
Name: getVolume
Return Type: float
ZenScript Copy// SoundType.getVolume() as float
mySoundType.getVolume();
Properties
Link to properties
名称 | Type | Has Getter | Has Setter |
---|---|---|---|
名称 breakSound | Type SoundEvent | Has Getter true | Has Setter false |
名称 fallSound | Type SoundEvent | Has Getter true | Has Setter false |
名称 hitSound | Type SoundEvent | Has Getter true | Has Setter false |
名称 pitch | Type float | Has Getter true | Has Setter false |
名称 placeSound | Type SoundEvent | Has Getter true | Has Setter false |
名称 stepSound | Type SoundEvent | Has Getter true | Has Setter false |
名称 volume | Type float | Has Getter true | Has Setter false |