版本发布 8
- updated to Minecraft 1.21.2/3/4 **Full Changelog**: https://github.com/SilkMC/silk/compare/1.10.7...1.11.0
- updated to **Minecraft 1.21** - updated to **Kotlin 2.0.0** - deprecated `Minecraft.serverPath` extension property in favor of new Minecraft variable `MinecraftServer.serverDirectory`
- persistence: ensure that `CompoundSavedData` always saves to world `.dat` file
- temporary fix: the constant `Style.DEFAULT_FONT` field won't get reobfuscated, which caused an issue with text builders at runtime - fix: return type of `ServerPlayer.serverWorld` was only `Level`, now it is `ServerLevel`
- updated to **Minecraft 1.20.5** by @MushroomMif - Added `setItemName` function in `ItemBuilder` to easily set `minecraft:item_name` item component using Silk text builder - `setPotion` function in `ItemBuilder` now takes `Holder<Potion>` instead of `Potion` as potions are now registered using `registerForHolder` method which returns `Holder<Potion>` - Sideboard internals was updated to remove scoreboard teams hack and use new `display` field instead - You can now specify which number format sideboard will use by new `numberFormat` property in the `sideboard` function, it is `BlankFormat` by default - now using **Kotlin 1.9.23** - `setSkullPlayer` now accepts a player `uuid` and/or player `name` and/or `texture` (notably allowing you to set a skull texture just by name) - you can now specify any `BinaryFormat` in `silk-network` (previously only Cbor) ### Internal Changes - `silk-network` now uses a FallbackProvider to inject a stream codec provided by each type of packet definition - each custom silk-network packet still corresponds exactly to a custom payload packet with the given idea - duplicated packet IDs will now result in a warning if they clash on lookup - `silk-persistence` now migrates the legacy `fabrikmcData` tag from nbt and level data to the new `silkmc_persistent_data` tag
- updated to **Minecraft 1.20.4** by @MushroomMif - updated to **Kotlin 1.9.21** - sideboards now use the new scoreboard API @MushroomMif - red numbers are no longer displayed on the right
- updated to **Kotlin 1.9.10** and **Minecraft 1.20.2** - added two **entity events**: - `damageLivingEntity` (Called when a LivingEntity is being hurt. When this event occurs, at least one invulnerability check has already passed.) - `checkInvulnerability` (Called when a regular invulnerability check is being performed. This event allows listeners to modify the result of that check.) - reworked **player (network) events**: - split `quitDuringLogin` into `quitDuringLogin` and `quitDuringConfiguration` (because of Minecraft now allowing for configuration at any time in-game) - added `reason` property to quit events - internal changes: - silk-network packets now use the new payload based custom packets under the hood - silk-persistence now uses a workaround for bypassing the datafixerupper from running on internal SavedData
- updated to Kotlin **1.9.0** and Minecraft **1.20.1** - fixed #50 and #51 (incompatibility with some other mods using custom packets) - added `font` and `insertion` fields to `literalText` builders (792bcc8f78a5feefcfccc3e6d520837897d12c9c)