GrindstoneOnTakeItemEvent
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.neoforge.api.event.grindstone.GrindstoneOnTakeItemEvent;Extends
GrindstoneOnTakeItemEvent extends GrindstoneEvent.
Implements
GrindstoneOnTakeItemEvent
implements the following interfaces:
Listening to the event
This event can be listened to like so:
events.register<crafttweaker.neoforge.api.event.grindstone.GrindstoneOnTakeItemEvent>(event => { println("GrindstoneOnTakeItemEvent ran!");});Members
Getter
// OnTakeItem.bottomItem as IItemStackevent.bottomItem
Return Type:
IItemStack
cancel()
Cancels the event. Same as script.zs
setCanceled(true)// OnTakeItem.cancel();event.cancel();Getter
// OnTakeItem.canceled as boolevent.canceled
Return Type:
bool
Setter
// OnTakeItem.canceled = (cancel as bool);event.canceled = myBool;Parameters:
cancel: bool Type: bool canceled() as bool
// OnTakeItem.canceled() as bool;event.canceled();
Return Type:
bool
canceled(cancel as bool)
// OnTakeItem.canceled(cancel as bool);event.canceled(myBool);Parameters:
cancel: bool Type: bool Getter
// OnTakeItem.newBottomItem as IItemStackevent.newBottomItem
Return Type:
IItemStack
Setter
event.newBottomItem = myIItemStack;Parameters:
newBottom: IItemStack Type: IItemStack Getter
// OnTakeItem.newTopItem as IItemStackevent.newTopItem
Return Type:
IItemStack
Setter
event.newTopItem = myIItemStack;Parameters:
newTop: IItemStack Type: IItemStack Getter
// OnTakeItem.topItem as IItemStackevent.topItem
Return Type:
IItemStack
Getter
// OnTakeItem.xp as intevent.xp
Return Type:
int
Setter
// OnTakeItem.xp = (xp as int);event.xp = myInt;Parameters:
xp: int Type: int