Skip to content

LocateTimeoutException 5.46.0 ​

final class · pocketmine\world\locate\LocateTimeoutException · source

Extends RuntimeException

Thrown by a biome or structure search that ran past its deadline (see checkDeadline()).

Methods ​

checkDeadline() ​

php
public static function checkDeadline(?int $deadlineNs) : void

Throws if the hrtime() deadline (in nanoseconds) has passed. A null deadline never expires.

deadlineIn() ​

php
public static function deadlineIn(int $seconds) : ?int

The hrtime() deadline (nanoseconds) $seconds from now, or null (no deadline) if $seconds is 0 or less.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.