PotionBrewEvent

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.event.brewing.PotionBrewEvent;

Extends

PotionBrewEvent extends Event.

Members

getItem(index as int) as IItemStack
script.zs
// PotionBrewEvent.getItem(index as int) as IItemStack;
myPotionBrewEvent.getItem(myInt);

Parameters:

index Type: int

Return Type: IItemStack

Getter
script.zs
// PotionBrewEvent.length as int
myPotionBrewEvent.length

Return Type: int

setItem(index as int, stack as IItemStack)
script.zs
// PotionBrewEvent.setItem(index as int, stack as IItemStack);
myPotionBrewEvent.setItem(myInt, myIItemStack);

Parameters:

index Type: int
stack Type: IItemStack