Home Commands Examples Getting Started With Scripts Global Keywords

BracketValidators

Importing the class

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.

script.zs
import crafttweaker.api.BracketValidators;

Static Methods

Return Type: boolean

script.zs
BracketValidators.validateBlockBracket(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateBlockStateMaterialBracket(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateEffectBracket(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateEnchantment(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateEntityType(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateItemBracket(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateProfessionBracket(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateResourceBracket(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateSoundEvent(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string

Return Type: boolean

script.zs
BracketValidators.validateTargetingStrategy(tokens as string) as boolean
ParameterType
Parameter
tokens
Type
string