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.
import crafttweaker . forge.api.event.brewing . PlayerBrewedPotionEvent;
PlayerBrewedPotionEvent extends PlayerEvent
.
Cancels the event. Same as setCanceled(true)
// PlayerBrewedPotionEvent.cancel();
myPlayerBrewedPotionEvent . cancel();
// PlayerBrewedPotionEvent.cancelable as bool
myPlayerBrewedPotionEvent . cancelable
Return Type:
bool
// PlayerBrewedPotionEvent.cancelable() as bool;
myPlayerBrewedPotionEvent . cancelable();
Return Type:
bool
// PlayerBrewedPotionEvent.canceled as bool
myPlayerBrewedPotionEvent . canceled
Return Type:
bool
// PlayerBrewedPotionEvent.canceled = (cancel as bool);
myPlayerBrewedPotionEvent . canceled = myBool;
// PlayerBrewedPotionEvent.canceled() as bool;
myPlayerBrewedPotionEvent . canceled();
Return Type:
bool
// PlayerBrewedPotionEvent.canceled(cancel as bool);
myPlayerBrewedPotionEvent . canceled(myBool);
// PlayerBrewedPotionEvent.entity as Player
myPlayerBrewedPotionEvent . entity
Return Type:
Player
// PlayerBrewedPotionEvent.entity as LivingEntity
myPlayerBrewedPotionEvent . entity
Return Type:
LivingEntity
// PlayerBrewedPotionEvent.entity as Entity
myPlayerBrewedPotionEvent . entity
Return Type:
Entity
// PlayerBrewedPotionEvent.hasResult as bool
myPlayerBrewedPotionEvent . hasResult
Return Type:
bool
// PlayerBrewedPotionEvent.hasResult() as bool;
myPlayerBrewedPotionEvent . hasResult();
Return Type:
bool
// PlayerBrewedPotionEvent.result as Result
myPlayerBrewedPotionEvent . result
Return Type:
EventResult
// PlayerBrewedPotionEvent.result = (result as Result);
myPlayerBrewedPotionEvent . result = myResult;
// PlayerBrewedPotionEvent.result() as Result;
myPlayerBrewedPotionEvent . result();
Return Type:
EventResult
// PlayerBrewedPotionEvent.result(result as Result);
myPlayerBrewedPotionEvent . result(myResult);
sets the event's result to allow
// PlayerBrewedPotionEvent.setAllow();
myPlayerBrewedPotionEvent . setAllow();
sets the event's result to default
// PlayerBrewedPotionEvent.setDefault();
myPlayerBrewedPotionEvent . setDefault();
sets the event's result to deny
// PlayerBrewedPotionEvent.setDeny();
myPlayerBrewedPotionEvent . setDeny();
// PlayerBrewedPotionEvent.stack as IItemStack
myPlayerBrewedPotionEvent . stack
Return Type:
IItemStack