mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-29 19:51:30 +01:00
Add Player#getFishHook
This commit is contained in:
parent
7cee8d5e02
commit
78f9a96605
@ -160,6 +160,15 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||
return new Location(worldServer.getWorld(), bed.getX(), bed.getY(), bed.getZ());
|
||||
}
|
||||
// Paper end
|
||||
// Paper start
|
||||
@Override
|
||||
public org.bukkit.entity.FishHook getFishHook() {
|
||||
if (getHandle().fishing == null) {
|
||||
return null;
|
||||
}
|
||||
return (org.bukkit.entity.FishHook) getHandle().fishing.getBukkitEntity();
|
||||
}
|
||||
// Paper end
|
||||
@Override
|
||||
public boolean sleep(Location location, boolean force) {
|
||||
Preconditions.checkArgument(location != null, "Location cannot be null");
|
||||
|
Loading…
Reference in New Issue
Block a user