If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.sound . SoundSource;
Undocumented Interfaces Comparable <Enum >
SoundSource is an enum with 10 constants. They are accessible like so:
< constant : minecraft:sound/source:ambient >
< constant : minecraft:sound/source:blocks >
< constant : minecraft:sound/source:hostile >
< constant : minecraft:sound/source:master >
< constant : minecraft:sound/source:music >
< constant : minecraft:sound/source:neutral >
< constant : minecraft:sound/source:players >
< constant : minecraft:sound/source:records >
< constant : minecraft:sound/source:voice >
< constant : minecraft:sound/source:weather >
// SoundSource.name as string
< constant : minecraft:sound/source:ambient > .name
Return Type:
string
// SoundSource.name() as string;
< constant : minecraft:sound/source:ambient > .name();
Return Type:
string