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.

script.zs
import crafttweaker.neoforge.api.event.block.crop.CropGrowEvent;

Extends

CropGrowEvent extends BlockEvent.

Members

Getter
script.zs
// CropGrowEvent.hasResult as bool
myCropGrowEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// CropGrowEvent.hasResult() as bool;
myCropGrowEvent.hasResult();

Return Type: bool

Getter
script.zs
// CropGrowEvent.level as LevelAccessor
myCropGrowEvent.level

Return Type: LevelAccessor

Getter
script.zs
// CropGrowEvent.pos as BlockPos
myCropGrowEvent.pos

Return Type: BlockPos

Getter
script.zs
// CropGrowEvent.result as Result
myCropGrowEvent.result

Return Type: EventResult

Setter
script.zs
// CropGrowEvent.result = (result as Result);
myCropGrowEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// CropGrowEvent.result() as Result;
myCropGrowEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// CropGrowEvent.result(result as Result);
myCropGrowEvent.result(myResult);

Parameters:

result Type: EventResult
setAllow()
sets the event's result to allow
script.zs
// CropGrowEvent.setAllow();
myCropGrowEvent.setAllow();
setDefault()
sets the event's result to default
script.zs
// CropGrowEvent.setDefault();
myCropGrowEvent.setDefault();
setDeny()
sets the event's result to deny
script.zs
// CropGrowEvent.setDeny();
myCropGrowEvent.setDeny();
Getter
script.zs
// CropGrowEvent.state as BlockState
myCropGrowEvent.state

Return Type: BlockState