Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

BracketHandlers

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 mods.botania.BracketHandlers;

Static Methods

Gets a brew from its registry name

Returns: The Brew from the name if found.
Return Type: Brew

script.zs
// BracketHandlers.getBrew(tokens as string) as Brew
BracketHandlers.getBrew("botania:healing");
ParameterTypeDescription
Parameter
tokens
Type
string
Description
The name of the brew

Gets a list of brew values.

Returns: A list of brew values.
Return Type: Collection<string>

script.zs
// BracketHandlers.getBrewDump() as Collection<string>
BracketHandlers.getBrewDump();