mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Drop pocketmine/uuid for ramsey/uuid
This commit is contained in:
@ -917,7 +917,12 @@ This version features substantial changes to the network system, improving coher
|
||||
|
||||
### Utils
|
||||
- The `Color` class was removed. It's now found as `pocketmine\color\Color` in the [`pocketmine/color`](https://github.com/pmmp/Color) package.
|
||||
- The `UUID` class was removed. It's now found as `pocketmine\uuid\UUID` in the [`pocketmine/uuid`](https://github.com/pmmp/UUID) package.
|
||||
- The `UUID` class was removed. [`ramsey/uuid`](https://github.com/ramsey/uuid) version 4.1 is now used instead.
|
||||
- `UUID::fromData()` can be replaced by `Ramsey\Uuid\Uuid::uuid3()`
|
||||
- `UUID::fromRandom()` can be replaced by `Ramsey\Uuid\Uuid::uuid4()`
|
||||
- `UUID::fromBinary()` can be replaced by `Ramsey\Uuid\Uuid::fromBytes()` (use `Ramsey\Uuid\Uuid::isValid()` to check validity)
|
||||
- `UUID::toBinary()` is replaced by `Ramsey\Uuid\UuidInterface::getBytes()`
|
||||
- See the documentation at https://uuid.ramsey.dev/en/latest/introduction.html for more information.
|
||||
- `Terminal::hasFormattingCodes()` no longer auto-detects the availability of formatting codes. Instead it's necessary to use `Terminal::init()` with no parameters to initialize, or `true` or `false` to override.
|
||||
- `Config->save()` no longer catches exceptions thrown during emitting to disk.
|
||||
- The following new classes have been added:
|
||||
|
Reference in New Issue
Block a user