Instrument
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.
import crafttweaker.api.item.component.Instrument;
Members
Getter
// Instrument.commandString as stringmyInstrument.commandString
Return Type:
string
Getter
// Instrument.range as floatmyInstrument.range
Return Type:
float
Getter
// Instrument.registryName as ResourceLocationmyInstrument.registryName
Return Type:
ResourceLocation
Getter
// Instrument.soundEvent as SoundEventmyInstrument.soundEvent
Return Type:
SoundEvent
Getter
// Instrument.useDuration as intmyInstrument.useDuration
Return Type:
int