Importare la Classe

Link to importare-la-classe

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;

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();
NomeTipoHa GetterHa Setter
Nome
breakSound
Tipo
SoundEvent
Ha Getter
Ha Setter
no
Nome
fallSound
Tipo
SoundEvent
Ha Getter
Ha Setter
no
Nome
hitSound
Tipo
SoundEvent
Ha Getter
Ha Setter
no
Nome
pitch
Tipo
float
Ha Getter
Ha Setter
no
Nome
placeSound
Tipo
SoundEvent
Ha Getter
Ha Setter
no
Nome
stepSound
Tipo
SoundEvent
Ha Getter
Ha Setter
no
Nome
volume
Tipo
float
Ha Getter
Ha Setter
no