ItemEntityPickupPreEvent
Link to itementitypickuppreevent
Importing the class
Link to importing-the-class
Importing the class is recommended for events, simply add this line to the top of your script file.
ZenScript Copyimport crafttweaker.neoforge.api.event.item.ItemEntityPickupPreEvent;
Listening to the event
Link to listening-to-the-event
ZenScript Copyevents.register<crafttweaker.neoforge.api.event.item.ItemEntityPickupPreEvent>(event => {
println("ItemEntityPickupPreEvent ran!");
});
Supertype
Link to supertype
ItemEntityPickupPreEvent extends ItemEntityPickupEvent. That means all methods available in ItemEntityPickupEvent are also available in ItemEntityPickupPreEvent
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name canPickup | Type TriState | Has Getter true | Has Setter true |