public class PlayerCatchFishEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerCatchFishEvent(Player player,
Vector3f fishingPosition,
Item catchedItem,
boolean removeBait) |
| Modifier and Type | Method and Description |
|---|---|
Item |
getCatchedItem()
Gets the item the player has catched.
|
Vector3f |
getFishingPosition()
Gets the previous bobber position, before the bobber/fish was pulled out of the water.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
removeBait(boolean set)
Determines if the bait will be consumed or not.
|
boolean |
removesBait()
Gets whether or not a bait will be consumed.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Vector3f getFishingPosition()
public Item getCatchedItem()
public boolean removesBait()
public void removeBait(boolean set)
set - true to consume the bait, false to keep it.public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.