Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
NeoForgeBracketDumpers NeoForgeBracketHandlers NeoForgeBracketValidators

NeoForgeBracketHandlers

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.bracket.NeoForgeBracketHandlers;

Description

This class contains the "simple" NeoForge Bracket handlers from CraftTweaker.

Members

static getAttachmentType(tokens as string) as AttachmentType<?>
script.zs
// NeoForgeBracketHandlers.getAttachmentType(tokens as string) as AttachmentType<?>;
NeoForgeBracketHandlers.getAttachmentType(myString);

Parameters:

tokens Type: string

Return Type: AttachmentType<?>

static getItemAbility(tokens as string) as ItemAbility
script.zs
// NeoForgeBracketHandlers.getItemAbility(tokens as string) as ItemAbility;
NeoForgeBracketHandlers.getItemAbility(myString);

Parameters:

tokens Type: string

Return Type: ItemAbility