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");
参数类型描述
参数
tokens
类型
string
描述
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();