ItemEntityPickupPostEvent

Link to itementitypickuppostevent

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
Copy
import crafttweaker.neoforge.api.event.item.ItemEntityPickupPostEvent;

Listening to the event

Link to listening-to-the-event

ZenScript
Copy
events.register<crafttweaker.neoforge.api.event.item.ItemEntityPickupPostEvent>(event => {
    println("ItemEntityPickupPostEvent ran!");
});

ItemEntityPickupPostEvent extends ItemEntityPickupEvent. That means all methods available in ItemEntityPickupEvent are also available in ItemEntityPickupPostEvent

NameTypeHas GetterHas Setter
Name
currentStack
Type
ItemStack
Has Getter
true
Has Setter
false
Name
originalStack
Type
ItemStack
Has Getter
true
Has Setter
false