public class PlayerFishEvent extends PlayerEvent implements Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
PlayerFishEvent.State
The state of a fishing inject when deployed
|
Constructor and Description |
---|
PlayerFishEvent(Player player,
PlayerFishEvent.State state,
int exp,
Item item) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean cancelled) |
int |
experience() |
boolean |
isIgnored() |
Item |
item() |
void |
setExp(int exp) |
void |
setItem(Item item) |
PlayerFishEvent.State |
state() |
player
public PlayerFishEvent(Player player, PlayerFishEvent.State state, int exp, Item item)
public boolean isIgnored()
isIgnored
in interface Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventpublic PlayerFishEvent.State state()
public int experience()
public void setExp(int exp)
Copyright © 2016. All rights reserved.