The ItemToss Event is fired whenever an Item is being tossed from a player's inventory.
Canceling this event will prevent the item from entering the world, thus causing the item to be deleted.

Класс события

Link to класс-события

You will need to cast the event in the function header as this class:
crafttweaker.event.ItemTossEvent
You can, of course, also import the class before and use that name then.

Наследование от интерфейсов событий

Link to наследование-от-интерфейсов-событий

PlayerDeathDrops реализует следующие интерфейсы и способно вызвать все их методы/геттеры/сеттеры:

ZenGetter/ZenSetter

Link to zengetterzensetter

ZenGetterТип
ZenGetter
item
Тип
IEntityItem
ZenGetter
player
Тип
IPlayer