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.neoforge.api.event.brewing.PlayerBrewedPotionEvent;

Extends

PlayerBrewedPotionEvent extends PlayerEvent.

Members

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