fish — Events

on fishorg.bukkit.event.player.PlayerFishEvent
Player1.0.0

Description

Fires when a player uses a fishing rod.

Variables

player
Player
org.bukkit.entity.Player
NullableNo

The player who used the fishing rod

entity
Entity
org.bukkit.entity.Entity
NullableYes

The caught entity, or null if nothing was caught

hook
Entity
org.bukkit.entity.Entity
NullableNo

The fishing hook entity

item
ItemStack
org.bukkit.inventory.ItemStack
NullableYes

The fishing rod in the player's main hand, or null if empty

state
String
java.lang.String
NullableNo

The fishing state: FISHING, CAUGHT_FISH, CAUGHT_ENTITY, IN_GROUND, FAILED_ATTEMPT, REEL_IN, BITE, or LURED

Examples

on fish:

Related (Player)