Brew
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.
Methods
Checks whether this brew can be infused with a Blood Pendant.
Returns: True if it can be infused, false otherwise.
Return Type: boolean
Checks whether this brew can be infused with incense.
Returns: True if it can be infused, false otherwise.
Return Type: boolean
Gets the color of the brew for the ItemStack passed in.
Returns: The color of the brew for the given stack.
Return Type: int
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description The stack to get the color of. |
Gets the command string of this brew.
Returns: The command string of this brew.
Return Type: string
Gets the mana cost of the brew.
Returns: The mana cost of the brew.
Return Type: int
Gets the mana cost of the brew for the ItemStack passed in.
Returns: The mana cost of the brew.
Return Type: int
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description The stack to get the mana cost of. |
Gets the MobEffectInstances that this brew applies when consumed.
Returns: The MobEffectInstances that this brew applies when consumed.
Return Type: stdlib.List<MobEffectInstance>
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description An ItemStack to provide extra context. |
Gets the translation key of the brew.
Returns: The translation key of the brew.
Return Type: string
Gets the translation key of the brew with extra context provided by the stack.
Returns: The translation key of the brew.
Return Type: string
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description The stack to provide extra context with. |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name canInfuseBloodPendant | Type boolean | Has Getter true | Has Setter false | Description Checks whether this brew can be infused with a Blood Pendant. |
Name canInfuseIncense | Type boolean | Has Getter true | Has Setter false | Description Checks whether this brew can be infused with incense. |
Name manaCost | Type int | Has Getter true | Has Setter false | Description Gets the mana cost of the brew. |
Name translationKey | Type string | Has Getter true | Has Setter false | Description Gets the translation key of the brew. |