HomeCommandsExamplesGetting Started With ScriptsGlobal Keywords
BracketDumpersBracketHandlersBracketValidatorsResourceLocationBracketHandler

SoundEvent

Importing the class

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.

script.zs
import crafttweaker.api.sound.SoundEvent;

Members

Getter
script.zs
// SoundEvent.commandString as string
mySoundEvent.commandString

Return Type: string

commandString() as string
script.zs
// SoundEvent.commandString() as string;
mySoundEvent.commandString();

Return Type: string

Getter
script.zs
// SoundEvent.location as ResourceLocation
mySoundEvent.location

Return Type: ResourceLocation

location() as ResourceLocation
script.zs
// SoundEvent.location() as ResourceLocation;
mySoundEvent.location();

Return Type: ResourceLocation

Getter
script.zs
// SoundEvent.registryName as ResourceLocation
mySoundEvent.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// SoundEvent.registryName() as ResourceLocation;
mySoundEvent.registryName();

Return Type: ResourceLocation