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.
import mods.botania.BracketHandlers;
Static Methods
Gets a brew from its registry name
Returns: The Brew from the name if found.
Return Type: Brew
// BracketHandlers.getBrew(tokens as string) as Brew
BracketHandlers.getBrew("botania:healing");
Parameter | Type | Description |
---|---|---|
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>
// BracketHandlers.getBrewDump() as Collection<string>
BracketHandlers.getBrewDump();