This event is fired to when a player is about to fish up an item. Cancelling the event will prevent the player from receiving an item, but the rod will still take damage.

Additional damage can be done to the rod by setting event.additionalDamage. A list of IItemStacks (which is not modifiable) that are going to be fished up is contained within event.drops.

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

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

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

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

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

ItemFished Events implement the following interfaces and are able to call all of their methods/getters/setters as well:

Геттеры/сеттеры

Link to геттерысеттеры

The following information can be retrieved/set during the event:

ZenGetterZenSetterТип
ZenGetter
damage
ZenSetter
Тип
int
ZenGetter
ZenSetter
additionalDamage
Тип
int
ZenGetter
drops
ZenSetter
Тип
IItemStack[]
ZenGetter
fishHook
ZenSetter
Тип
IEntityFishHook