Add FishHookStateChangeEvent (#12165)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.inventory.EquipmentSlot;
|
||||
import io.papermc.paper.event.entity.FishHookStateChangeEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -306,6 +307,7 @@ public interface FishHook extends Projectile {
|
||||
|
||||
/**
|
||||
* Represents a state in which a fishing hook may be.
|
||||
* State transitions can be listened for using {@link FishHookStateChangeEvent}
|
||||
*/
|
||||
public enum HookState {
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.bukkit.event.player;
|
||||
|
||||
import io.papermc.paper.event.entity.FishHookStateChangeEvent;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.FishHook;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -12,6 +13,8 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Thrown when a player is fishing
|
||||
*
|
||||
* <p>If you want to monitor a fishhooks state transition, you can use {@link FishHookStateChangeEvent}.</p>
|
||||
*/
|
||||
public class PlayerFishEvent extends PlayerEvent implements Cancellable {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user