Home Commands Examples Getting Started With Scripts Global Keywords
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 getToolType(tokens as string) as ToolAction
script.zs
// NeoForgeBracketHandlers.getToolType(tokens as string) as ToolAction;
NeoForgeBracketHandlers.getToolType(myString);

Parameters:

tokens Type: string

Return Type: ToolAction