[ci skip] update changelog

This commit is contained in:
Dylan K. Taylor 2021-08-21 00:15:38 +01:00
parent 14577daae3
commit 4023a024ce
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -499,10 +499,15 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- `PlayerItemUseEvent`: player activating their held item, for example to throw it.
- `BlockTeleportEvent`: block teleporting, for example dragon egg when attacked.
- `PlayerDisplayNameChangeEvent`
- `EntityItemPickupEvent`: player (or other entity) picks up a dropped item (or arrow). Replaces `InventoryPickupItemEvent` and `InventoryPickupArrowEvent`.
- Unlike its predecessors, this event supports changing the destination inventory.
- If the destination inventory is `null`, the item will be destroyed. This is usually seen for creative players with full inventories.
- The following events have been removed:
- `EntityArmorChangeEvent`
- `EntityInventoryChangeEvent`
- `EntityLevelChangeEvent` - `EntityTeleportEvent` with world checks should be used instead.
- `InventoryPickupItemEvent` - use `EntityItemPickupEvent` instead
- `InventoryPickupArrowEvent` - use `EntityItemPickupEvent` instead
- `NetworkInterfaceCrashEvent`
- `PlayerCheatEvent`
- `PlayerIllegalMoveEvent`
@ -712,12 +717,25 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
### Lang
- The following classes have been renamed:
- `BaseLang` -> `Language`
- `TranslationContainer` -> `Translatable`
- The following classes have been removed:
- `TextContainer`
- The following API methods have been added:
- `Translatable->format()`: allows adding formatting (such as color codes) to a translation
- `Translatable->prefix()`: allows prefixing formatting
- `Translatable->postfix()`: allows postfixing formatting
- The following API methods have changed signatures:
- `Translatable->__construct()` now accepts `array<int|string, Translatable|string>` for parameters, instead of just `list<string>`.
- `Translatable->getParameter()` now accepts `int|string` for the index instead of just `int`.
- `Translatable->getParameter()` now returns `Translatable|string` instead of just `string`.
- `Translatable->getParameters()` now returns `array<int|string, Translatable|string>`.
- `LanguageNotFoundException` has been added. This is thrown when trying to construct a `Language` which doesn't exist in the server files.
- `TranslationContainer` no longer discards keys for translation parameters. Previously, only the insertion order was considered.
- `TranslationContainer` now supports string keys for translation parameters.
- `TranslationContainer` now supports providing other `TranslationContainers` as translation parameters.
- `Language->translateString()` now supports providing `TranslationContainers` as translation parameters.
- `Translatable` no longer discards keys for translation parameters. Previously, only the insertion order was considered.
- `Translatable` now supports string keys for translation parameters.
- `Translatable` now supports providing other `Translatable`s as translation parameters.
- `Language->translateString()` now supports providing `Translatable`s as translation parameters.
- `Language->translateString()` no longer automatically attempts to translate string parameters. If you want them to be translated, translate them explicitly. This fixes bugs where player chat messages containing translation keys would be unexpectedly translated.
- `Language->translate()` no longer attempts to translate string parameters of `Translatable` (same rationale as previous point).
### Network
- The following fields have been removed:
@ -1138,6 +1156,9 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- `Terminal::write()`: emits a Minecraft-formatted text line without newline
- `Terminal::writeLine()`: emits a Minecraft-formatted text line with newline
- `Utils::recursiveUnlink()`: recursively deletes a directory and its contents
- The following API class constants have been added:
- `TextFormat::COLORS`: lists all known color codes
- `TextFormat::FORMATS`: lists all known formatting codes (e.g. italic, bold). (`RESET` is not included because it _removes_ formats, rather than adding them.)
- The following deprecated API redirects have been removed:
- `Utils::execute()`: moved to `Process`
- `Utils::getIP()`: moved to `Internet`
@ -1155,6 +1176,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- The following API methods have signature changes:
- `Internet::simpleCurl()` now requires a `Closure` for its `onSuccess` parameter instead of `callable`.
- The following API methods have been removed:
- `TextFormat::toJSON()`
- `Utils::getCallableIdentifier()`
## Gameplay
@ -1164,6 +1186,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- bamboo sapling
- barrel
- barrier
- blast furnace
- blue ice
- carved pumpkin
- coral block
@ -1176,6 +1199,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- note block
- red, green, blue and purple torches (from Minecraft: Education Edition)
- sea pickle
- smoker
- underwater torches (from Minecraft: Education Edition)
- additional wood variants of the following:
- buttons