|
| __construct (private string $name, private int $averagePerTick, int $maxBufferTicks, private int $updateFrequencyNs=50_000_000,) |
|
| decrement (int $amount=1) |
|
| update () |
|
Definition at line 31 of file PacketRateLimiter.php.
◆ __construct()
pocketmine\network\mcpe\PacketRateLimiter::__construct |
( |
private string | $name, |
|
|
private int | $averagePerTick, |
|
|
int | $maxBufferTicks, |
|
|
private int | $updateFrequencyNs = 50_000_000 ) |
◆ decrement()
pocketmine\network\mcpe\PacketRateLimiter::decrement |
( |
int | $amount = 1 | ) |
|
- Exceptions
-
PacketHandlingException | if the rate limit has been exceeded |
Definition at line 55 of file PacketRateLimiter.php.
◆ update()
pocketmine\network\mcpe\PacketRateLimiter::update |
( |
| ) |
|
The documentation for this class was generated from the following file: