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.forge.api.event.brewing.PotionBrewEvent;

Extends

PotionBrewEvent extends Event.

Members

cancel()
Cancels the event. Same as setCanceled(true)
script.zs
// PotionBrewEvent.cancel();
myPotionBrewEvent.cancel();
Getter
script.zs
// PotionBrewEvent.cancelable as bool
myPotionBrewEvent.cancelable

Return Type: bool

cancelable() as bool
script.zs
// PotionBrewEvent.cancelable() as bool;
myPotionBrewEvent.cancelable();

Return Type: bool

Getter
script.zs
// PotionBrewEvent.canceled as bool
myPotionBrewEvent.canceled

Return Type: bool

Setter
script.zs
// PotionBrewEvent.canceled = (cancel as bool);
myPotionBrewEvent.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// PotionBrewEvent.canceled() as bool;
myPotionBrewEvent.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// PotionBrewEvent.canceled(cancel as bool);
myPotionBrewEvent.canceled(myBool);

Parameters:

cancel Type: bool
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.hasResult as bool
myPotionBrewEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// PotionBrewEvent.hasResult() as bool;
myPotionBrewEvent.hasResult();

Return Type: bool

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

Return Type: int

Getter
script.zs
// PotionBrewEvent.result as Result
myPotionBrewEvent.result

Return Type: EventResult

Setter
script.zs
// PotionBrewEvent.result = (result as Result);
myPotionBrewEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// PotionBrewEvent.result() as Result;
myPotionBrewEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// PotionBrewEvent.result(result as Result);
myPotionBrewEvent.result(myResult);

Parameters:

result Type: EventResult
setAllow()
sets the event's result to allow
script.zs
// PotionBrewEvent.setAllow();
myPotionBrewEvent.setAllow();
setDefault()
sets the event's result to default
script.zs
// PotionBrewEvent.setDefault();
myPotionBrewEvent.setDefault();
setDeny()
sets the event's result to deny
script.zs
// PotionBrewEvent.setDeny();
myPotionBrewEvent.setDeny();
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