BracketHandlers
Link to brackethandlers
导入类
Link to 导入类
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 Copyimport mods.botania.BracketHandlers;
Static Methods
Link to static-methods
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();