Importing the class

Link to 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.

ZenScript
Copy
import mods.botania.BracketHandlers;

Name: getBrew

Gets a brew from its registry name

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

ZenScript
Copy
// BracketHandlers.getBrew(tokens as string) as Brew

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

Name: getBrewDump

Gets a list of brew values.

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

ZenScript
Copy
// BracketHandlers.getBrewDump() as Collection<string>

BracketHandlers.getBrewDump();