GrindstoneEvent

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.grindstone.GrindstoneEvent;

Extends

GrindstoneEvent extends Event.

Members

Getter
script.zs
// GrindstoneEvent.bottomItem as IItemStack
myGrindstoneEvent.bottomItem

Return Type: IItemStack

Getter
script.zs
// GrindstoneEvent.hasResult as bool
myGrindstoneEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// GrindstoneEvent.hasResult() as bool;
myGrindstoneEvent.hasResult();

Return Type: bool

Getter
script.zs
// GrindstoneEvent.result as Result
myGrindstoneEvent.result

Return Type: EventResult

Setter
script.zs
// GrindstoneEvent.result = (result as Result);
myGrindstoneEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// GrindstoneEvent.result() as Result;
myGrindstoneEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// GrindstoneEvent.result(result as Result);
myGrindstoneEvent.result(myResult);

Parameters:

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

Return Type: IItemStack

Getter
script.zs
// GrindstoneEvent.xp as int
myGrindstoneEvent.xp

Return Type: int

Setter
script.zs
// GrindstoneEvent.xp = (xp as int);
myGrindstoneEvent.xp = myInt;

Parameters:

xp Type: int