Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

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