Add Player#getFishHook

This commit is contained in:
u9g
2022-06-14 19:35:21 -04:00
parent b4e03d9221
commit b780ff7251

View File

@ -425,6 +425,13 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
@Nullable
public Location getPotentialBedLocation();
// Paper end
// Paper start
/**
* @return the player's fishing hook if they are fishing
*/
@Nullable
FishHook getFishHook();
// Paper end
/**
* Attempts to make the entity sleep at the given location.