CropGrowEvent
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.
import crafttweaker.forge.api.event.block.crop.CropGrowEvent;
Extends
CropGrowEvent extends BlockEvent
.
Members
cancel()
Cancels the event. Same as script.zs
setCanceled(true)
// CropGrowEvent.cancel();myCropGrowEvent.cancel();
Getter
// CropGrowEvent.cancelable as boolmyCropGrowEvent.cancelable
Return Type:
bool
cancelable() as bool
// CropGrowEvent.cancelable() as bool;myCropGrowEvent.cancelable();
Return Type:
bool
Getter
// CropGrowEvent.canceled as boolmyCropGrowEvent.canceled
Return Type:
bool
Setter
// CropGrowEvent.canceled = (cancel as bool);myCropGrowEvent.canceled = myBool;
Parameters:
cancel: bool
Type: bool
canceled() as bool
// CropGrowEvent.canceled() as bool;myCropGrowEvent.canceled();
Return Type:
bool
canceled(cancel as bool)
// CropGrowEvent.canceled(cancel as bool);myCropGrowEvent.canceled(myBool);
Parameters:
cancel: bool
Type: bool
Getter
// CropGrowEvent.hasResult as boolmyCropGrowEvent.hasResult
Return Type:
bool
hasResult() as bool
// CropGrowEvent.hasResult() as bool;myCropGrowEvent.hasResult();
Return Type:
bool
Getter
// CropGrowEvent.level as LevelAccessormyCropGrowEvent.level
Return Type:
LevelAccessor
Getter
// CropGrowEvent.result as EventResultmyCropGrowEvent.result
Return Type:
EventResult
Setter
myCropGrowEvent.result = myResult;
Parameters:
result: EventResult
Type: EventResult
result() as Result
result(result as Result)
myCropGrowEvent.result(myResult);
Parameters:
result: EventResult
Type: EventResult
setAllow()
sets the event's result to script.zs
allow
// CropGrowEvent.setAllow();myCropGrowEvent.setAllow();
setDefault()
sets the event's result to script.zs
default
// CropGrowEvent.setDefault();myCropGrowEvent.setDefault();
setDeny()
sets the event's result to script.zs
deny
// CropGrowEvent.setDeny();myCropGrowEvent.setDeny();
Getter
// CropGrowEvent.state as BlockStatemyCropGrowEvent.state
Return Type:
BlockState