public static interface FishingEvent.Stop extends FishingEvent, Cancellable
FishingEvent
where the FishHook
is retracted
or "reeled in".
If the FishHook
was cast into water, an ItemStack
may
be hooked when it is retracted. If the event is not cancelled, Vanilla
will send one or more ItemStack
by spawning Item
s, and
sending them moving towards the player.
If the FishHook
has an entity hooked, Vanilla will pull
the hooked entity towards the caster, if the event is not cancelled.
FishingEvent.HookEntity, FishingEvent.Start, FishingEvent.Stop
Modifier and Type | Method and Description |
---|---|
default List<Transaction<ItemStackSnapshot>> |
getItemStackTransaction()
Deprecated.
|
List<Transaction<ItemStackSnapshot>> |
getTransactions()
Gets a list of
Transaction s for each ItemStackSnapshot
that will be spawned if this event is not cancelled. |
getFishHook
getCause, getContext, getSource
isCancelled, setCancelled
List<Transaction<ItemStackSnapshot>> getTransactions()
Transaction
s for each ItemStackSnapshot
that will be spawned if this event is not cancelled.@Deprecated default List<Transaction<ItemStackSnapshot>> getItemStackTransaction()
getTransactions()
Transaction
s for each ItemStackSnapshot
that will be spawned if this event is not cancelled.