public static interface FishingEvent.Stop extends FishingEvent, ChangeEntityExperienceEvent, Cancellable
FishingEvent
where the FishHook
is retracted
or "reeled in".FishingEvent.Finish, FishingEvent.Hook, FishingEvent.Start, FishingEvent.Stop
Modifier and Type | Method and Description |
---|---|
Optional<Entity> |
getCaughtEntity()
Gets the
Entity hooked, if available. |
Optional<ItemStackTransaction> |
getItemStackTransaction()
Gets the
ItemStackTransaction that is the transaction
involving the ItemStack , if available. |
Optional<EntitySnapshot> |
getOriginalCaughtEntity()
Gets the original caught
Entity if available. |
void |
setCaughtEntity(Entity entity)
Sets the
Entity hooked, if available. |
getFishHook, getOriginalFishHook
getExperience, getOriginalExperience, setExperience
getTargetEntity
getCallbacks
isCancelled, setCancelled
getCause
Optional<ItemStackTransaction> getItemStackTransaction()
ItemStackTransaction
that is the transaction
involving the ItemStack
, if available. If you wish to
change the itemstack result, use ItemStackTransaction.setCustom(ItemStackSnapshot)
Optional<EntitySnapshot> getOriginalCaughtEntity()
Entity
if available.Entity
snapshot, if availableOptional<Entity> getCaughtEntity()
Entity
hooked, if available.Entity