public static interface FishingEvent.Stop extends FishingEvent, ChangeEntityExperienceEvent, Cancellable
FishingEvent
where the FishHook
is retracted
or "reeled in".
If the FishHook
was cast into water, an ItemStack
may
be hooken when it is retracted. If the event is not cancelled, Vanilla
will send the @link ItemStackby spawning an Item
, and sending it
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.
In Vanilla, the original {@link ItemStack}
will usually be a Fish
, or miscellaneous item.
FishingEvent.HookEntity, FishingEvent.Start, FishingEvent.Stop
Modifier and Type | Method and Description |
---|---|
Transaction<ItemStackSnapshot> |
getItemStackTransaction()
Gets the
Transaction that is the transaction
involving the ItemStack , If you wish to
change the itemstack result, use Transaction.setCustom(DataSerializable) |
getFishHook, getOriginalFishHook
getExperience, getOriginalExperience, setExperience
getTargetEntity
isCancelled, setCancelled
getCause
Transaction<ItemStackSnapshot> getItemStackTransaction()
Transaction
that is the transaction
involving the ItemStack
, If you wish to
change the itemstack result, use Transaction.setCustom(DataSerializable)
The special item type ItemTypes.NONE
is used to represent
no item being caught,