PlayerBrewedPotionEvent

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.PlayerBrewedPotionEvent;

Extends

PlayerBrewedPotionEvent extends PlayerEvent.

Members

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

Return Type: bool

cancelable() as bool
script.zs
// PlayerBrewedPotionEvent.cancelable() as bool;
myPlayerBrewedPotionEvent.cancelable();

Return Type: bool

Getter
script.zs
// PlayerBrewedPotionEvent.canceled as bool
myPlayerBrewedPotionEvent.canceled

Return Type: bool

Setter
script.zs
// PlayerBrewedPotionEvent.canceled = (cancel as bool);
myPlayerBrewedPotionEvent.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// PlayerBrewedPotionEvent.canceled() as bool;
myPlayerBrewedPotionEvent.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// PlayerBrewedPotionEvent.canceled(cancel as bool);
myPlayerBrewedPotionEvent.canceled(myBool);

Parameters:

cancel Type: bool
Getter
script.zs
// PlayerBrewedPotionEvent.entity as Player
myPlayerBrewedPotionEvent.entity

Return Type: Player

Getter
script.zs
// PlayerBrewedPotionEvent.entity as LivingEntity
myPlayerBrewedPotionEvent.entity

Return Type: LivingEntity

Getter
script.zs
// PlayerBrewedPotionEvent.entity as Entity
myPlayerBrewedPotionEvent.entity

Return Type: Entity

Getter
script.zs
// PlayerBrewedPotionEvent.hasResult as bool
myPlayerBrewedPotionEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// PlayerBrewedPotionEvent.hasResult() as bool;
myPlayerBrewedPotionEvent.hasResult();

Return Type: bool

Getter
script.zs
// PlayerBrewedPotionEvent.result as Result
myPlayerBrewedPotionEvent.result

Return Type: EventResult

Setter
script.zs
// PlayerBrewedPotionEvent.result = (result as Result);
myPlayerBrewedPotionEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// PlayerBrewedPotionEvent.result() as Result;
myPlayerBrewedPotionEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// PlayerBrewedPotionEvent.result(result as Result);
myPlayerBrewedPotionEvent.result(myResult);

Parameters:

result Type: EventResult
setAllow()
sets the event's result to allow
script.zs
// PlayerBrewedPotionEvent.setAllow();
myPlayerBrewedPotionEvent.setAllow();
setDefault()
sets the event's result to default
script.zs
// PlayerBrewedPotionEvent.setDefault();
myPlayerBrewedPotionEvent.setDefault();
setDeny()
sets the event's result to deny
script.zs
// PlayerBrewedPotionEvent.setDeny();
myPlayerBrewedPotionEvent.setDeny();
Getter
script.zs
// PlayerBrewedPotionEvent.stack as IItemStack
myPlayerBrewedPotionEvent.stack

Return Type: IItemStack