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

Extends

GrindstoneEvent extends Event.

Members

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

Return Type: IItemStack

cancel()
Cancels the event. Same as setCanceled(true)
script.zs
// GrindstoneEvent.cancel();
myGrindstoneEvent.cancel();
Getter
script.zs
// GrindstoneEvent.cancelable as bool
myGrindstoneEvent.cancelable

Return Type: bool

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

Return Type: bool

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

Return Type: bool

Setter
script.zs
// GrindstoneEvent.canceled = (cancel as bool);
myGrindstoneEvent.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// GrindstoneEvent.canceled() as bool;
myGrindstoneEvent.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// GrindstoneEvent.canceled(cancel as bool);
myGrindstoneEvent.canceled(myBool);

Parameters:

cancel Type: bool
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