|
|
Silk (Silk)Github |相关wiki |源站链接支持: fabricSilk是针对Fabric、Quilt和Paper的Minecraft的Kotlin API。
Features of the API:
- 一个库存GUI API
- Brigadier的Kotlin包装器
- 用于创建复杂`Text`对象的Kotlin DSL
- 协程实用程序和任务
- 适用于Minecraft类的kotlinx.serialization支持
- 计分牌(边栏)API
- `ItemStack`实用程序
- 使用kotlinx.serialization将任何类序列化为NBT
- NBT构建器
- 用于在块、实体等上存储持续数据的API
- 基于kotlinx.serialization的网络传输(数据包c2s、s2c和c2c)
- Kotlin Compose UI支持
- 实体、世界等的通用扩展
- 几何实用工具
Docs:
该API的文档位于[Silk官方网站](链接)。
许可证:
当前版本的Silk可在[**GPL-3.0**](链接)下获得,而之前版本(低于1.5.1时的FabrikMC版本)则在[Apache-2.0许可](链接)下共享。
截图:
来自Modrinth所有游戏版本1.21.61.21.71.21.51.21.21.21.31.21.41.211.21.11.20.51.20.61.20.31.20.41.20.21.201.20.11.19.41.19.31.19.11.19.21.191.18.21.18.11.181.17.11.16.5所有类型fabricSilk 1.11.2silk-all-1.11.2.jar下载1.11.2#Beta- updated to **Minecraft 1.21.6**展开版本: 1.11.2支持游戏: 1.21.6, 1.21.7类型:FabricBeta下载次数: 78,0041.11.1silk-all-1.11.1.jar下载1.11.1#Release- updated to **Minecraft 1.21.5**展开版本: 1.11.1支持游戏: 1.21.5类型:FabricRelease下载次数: 199,5801.11.0silk-all-1.11.0.jar下载1.11.0#Release- updated to **Minecraft 1.21.4**展开版本: 1.11.0支持游戏: 1.21.2, 1.21.3, 1.21.4类型:FabricRelease下载次数: 173,3931.10.7silk-all-1.10.7.jar下载1.10.7#Release- updated to **Minecraft 1.21**- updated to **Kotlin 2.0.0**- deprecated `Minecraft.serverPath` extension property in favor of new Minecraft variable `MinecraftServer.serverDirectory`展开版本: 1.10.7支持游戏: 1.21, 1.21.1类型:FabricRelease下载次数: 524,1911.10.6silk-all-1.10.6.jar下载1.10.6#Release- persistence: ensure that `CompoundSavedData` always saves to world `.dat` file展开版本: 1.10.6支持游戏: 1.20.5, 1.20.6类型:FabricRelease下载次数: 20,4911.10.5silk-all-1.10.5.jar下载1.10.5#Release- 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`展开版本: 1.10.5支持游戏: 1.20.5, 1.20.6类型:FabricRelease下载次数: 1,2321.10.4silk-all-1.10.4.jar下载1.10.4#Alpha- 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展开版本: 1.10.4支持游戏: 1.20.5, 1.20.6类型:FabricAlpha下载次数: 3741.10.3silk-all-1.10.3.jar下载1.10.3#Release- updated to **Minecraft 1.20.4** by @MushroomMif- updated to **Kotlin 1.9.21**- sideboards now use the new scoreboard API by @MushroomMif- red numbers are no longer displayed on the right展开版本: 1.10.3支持游戏: 1.20.3, 1.20.4类型:FabricRelease下载次数: 45,3271.10.2silk-all-1.10.2.jar下载1.10.2#Release- 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展开版本: 1.10.2支持游戏: 1.20.2类型:FabricRelease下载次数: 7,8441.10.1silk-all-1.10.1.jar下载1.10.1#Release- 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- fully removed all dependencies on Fabric API展开版本: 1.10.1支持游戏: 1.20, 1.20.1类型:FabricRelease下载次数: 275,0351.10.0silk-all-1.10.0.jar下载1.10.0#Release- updated to **Minecraft 1.20**- updated to Kotlin 1.8.21## Public API for server and player list access- added multiple properties to the `Silk` object:- `server` (nullable)- `serverOrThrow` (non-nullable)- `players` (non-nullable list, can be empty)- deprecated previous (delicate) property:- `Silk.currentServer`- added extension on `MinecraftServer`:- `server.players`## Fixes- fixed modmenu icon not showing up since rebranding - by @mooziii- fixed sideboard ordering (sideboards do not use scores of zero anymore) - by @Krxwallo## Internal- improved async event test- marked `ReadWriteMutex` as `@InternalSilkApi`### silk-network- removed usage of fabric-api from silk-network (now standalone)- now sends custom payload packets directly- each packet will now be sent on a channel of the same name as the packet identifier- client to client packets can now be forwarded to multiple players at once- it is now garuanteed that receivers won\'t be executedconcurrently展开版本: 1.10.0支持游戏: 1.20, 1.20.1类型:FabricRelease下载次数: 7,3721.9.8silk-all-1.9.8.jar下载1.9.8#Release- fixed ServerEvents.postStart 706f592 by @Krxwallo展开版本: 1.9.8支持游戏: 1.19.4类型:FabricRelease下载次数: 5,7191.9.7silk-all-1.9.7.jar下载1.9.7#Release- updated to Minecraft 1.19.4- fixed an issue where Brigadier \"swallowed\" exceptions during command execution展开版本: 1.9.7支持游戏: 1.19.4类型:FabricRelease下载次数: 2291.9.6silk-all-1.9.6.jar下载1.9.6#Release- updated to Kotlin 1.8.10展开版本: 1.9.6支持游戏: 1.19.3类型:FabricRelease下载次数: 1,6971.9.5silk-all-1.9.5.jar下载1.9.5#ReleaseA small release fixing an issue with client commands, which appeared in Silk 1.9.4 due to the Minecraft 1.19.3 update.展开版本: 1.9.5支持游戏: 1.19.3类型:FabricRelease下载次数: 3311.9.4silk-all-1.9.4.jar下载1.9.4#ReleaseEven though it is only a minor version jump, this is **a major minecraft update under the hood**, so most mods need to be updated.Older Silk versions for 1.19 (Silk 1.9.3 and lower) do not work for 1.19.3.Internally Mojang changed major parts of the Registry and Command System, and there a changes all over the place since Minecraft 1.19.3 already contains several 1.20 features as opt in.展开版本: 1.9.4支持游戏: 1.19.3类型:FabricRelease下载次数: 1261.9.2silk-all-1.9.2.jar下载1.9.2#Release## Sideboard API changes- added updatable sideboard line- added `emptyLine` function- allow to pass a normal flow as a line- added `updatingLine` function as a replacement for the old lineChangingPeriodically*all deprecations have quick fixes for alternatives*- deprecated SimpleSideboardLine and ChangingSideboardLine with replacements- deprecated `line { }`, `literalLine` and `FlowCollector<Component>.emitLiteralText`## Events Changes- added player login events to core (still part of the experimental events API, actual docs and info will follow)- added entity events namespace as a starting and extension point for core and custom entity events## DependenciesUpdated to fabric-language-kotlin 1.8.3+kotlin.1.7.10, and increased the minimum required version to 1.8.0+kotlin.1.7.0.## Temporary usage requirementRemember that in order to use this release you have to follow this guide:https://gist.github.com/jakobkmar/5068aa14e37b859c3246de91cac74347展开版本: 1.9.2支持游戏: 1.19.1, 1.19.2类型:FabricRelease下载次数: 16,9611.9.1silk-all-1.9.1.jar下载1.9.1#Beta- compatibility with Minecraft 1.19.2 and 1.19.1- a pretty big change is that the event API is now included in Silk, it is still experimental though, which is also the reason for this not being a major version bump and documentation being not that good yet- you can now convert Minecraft random sources to Kotlin randoms and vice-versa展开版本: 1.9.1支持游戏: 1.19.1, 1.19.2类型:FabricBeta下载次数: 2611.9.0silk-all-1.9.0.jar下载1.9.0#ReleaseNo changelog was specified.展开版本: 1.9.0支持游戏: 1.19类型:FabricRelease下载次数: 3,2231.8.1fabrikmc-all-1.8.1.jar下载1.8.1#ReleaseNo changelog was specified.展开版本: 1.8.1支持游戏: 1.19类型:FabricRelease下载次数: 1631.8.0fabrikmc-all-1.8.0.jar下载1.8.0#Release- compatibility with 1.19- new API features展开版本: 1.8.0支持游戏: 1.19类型:FabricRelease下载次数: 1451.7.4fabrikmc-all-1.7.4.jar下载1.7.4#ReleaseNo changelog was specified.展开版本: 1.7.4支持游戏: 1.18.2类型:FabricRelease下载次数: 1,1851.7.3fabrikmc-all-1.7.3.jar下载1.7.3#ReleaseNo changelog was specified.展开版本: 1.7.3支持游戏: 1.18.2类型:FabricRelease下载次数: 1561.7.2fabrikmc-all-1.7.2.jar下载1.7.2#Release- compatibility with 1.18.2展开版本: 1.7.2支持游戏: 1.18.2类型:FabricRelease下载次数: 1551.7.1fabrikmc-all-1.7.1.jar下载1.7.1#Releasefabrikmc-commands-1.7.1.jar下载1.7.1#Releasefabrikmc-compose-1.7.1.jar下载1.7.1#Releasefabrikmc-core-1.7.1.jar下载1.7.1#Releasefabrikmc-game-1.7.1.jar下载1.7.1#Releasefabrikmc-igui-1.7.1.jar下载1.7.1#Releasefabrikmc-nbt-1.7.1.jar下载1.7.1#Releasefabrikmc-network-1.7.1.jar下载1.7.1#Releasefabrikmc-persistence-1.7.1.jar下载1.7.1#ReleaseThe project has been updated to 1.7.1. No changelog was specified.展开版本: 1.7.1支持游戏: 1.18.1类型:FabricRelease下载次数: 7231.7.0fabrikmc-all-1.7.0.jar下载1.7.0#Releasefabrikmc-commands-1.7.0.jar下载1.7.0#Releasefabrikmc-compose-1.7.0.jar下载1.7.0#Releasefabrikmc-core-1.7.0.jar下载1.7.0#Releasefabrikmc-game-1.7.0.jar下载1.7.0#Releasefabrikmc-igui-1.7.0.jar下载1.7.0#Releasefabrikmc-nbt-1.7.0.jar下载1.7.0#Releasefabrikmc-network-1.7.0.jar下载1.7.0#Releasefabrikmc-persistence-1.7.0.jar下载1.7.0#ReleaseThe project has been updated to 1.7.0. No changelog was specified.展开版本: 1.7.0支持游戏: 1.18类型:FabricRelease下载次数: 8681.6.2fabrikmc-all-1.6.2.jar下载1.6.2#Releasefabrikmc-commands-1.6.2.jar下载1.6.2#Releasefabrikmc-compose-1.6.2.jar下载1.6.2#Releasefabrikmc-core-1.6.2.jar下载1.6.2#Releasefabrikmc-game-1.6.2.jar下载1.6.2#Releasefabrikmc-igui-1.6.2.jar下载1.6.2#Releasefabrikmc-nbt-1.6.2.jar下载1.6.2#Releasefabrikmc-network-1.6.2.jar下载1.6.2#Releasefabrikmc-persistence-1.6.2.jar下载1.6.2#ReleaseThe project has been updated to 1.6.2. No changelog was specified.展开版本: 1.6.2支持游戏: 1.17.1类型:FabricRelease下载次数: 8561.6.1fabrikmc-all-1.6.1.jar下载1.6.1#Releasefabrikmc-commands-1.6.1.jar下载1.6.1#Releasefabrikmc-compose-1.6.1.jar下载1.6.1#Releasefabrikmc-core-1.6.1.jar下载1.6.1#Releasefabrikmc-game-1.6.1.jar下载1.6.1#Releasefabrikmc-igui-1.6.1.jar下载1.6.1#Releasefabrikmc-nbt-1.6.1.jar下载1.6.1#Releasefabrikmc-network-1.6.1.jar下载1.6.1#Releasefabrikmc-persistence-1.6.1.jar下载1.6.1#ReleaseThe project has been updated to 1.6.1. No changelog was specified.展开版本: 1.6.1支持游戏: 1.17.1类型:FabricRelease下载次数: 4761.6.0The project has been updated to 1.6.0. No changelog was specified.展开版本: 1.6.0支持游戏:类型:Release下载次数: 01.5.3fabrikmc-all-1.5.3.jar下载1.5.3#Releasefabrikmc-commands-1.5.3.jar下载1.5.3#Releasefabrikmc-core-1.5.3.jar下载1.5.3#Releasefabrikmc-game-1.5.3.jar下载1.5.3#Releasefabrikmc-igui-1.5.3.jar下载1.5.3#Releasefabrikmc-nbt-1.5.3.jar下载1.5.3#Releasefabrikmc-persistence-1.5.3.jar下载1.5.3#ReleaseThe project has been updated to 1.5.3. No changelog was specified.展开版本: 1.5.3支持游戏: 1.17.1类型:FabricRelease下载次数: 3731.5.2fabrikmc-all-1.5.2.jar下载1.5.2#Releasefabrikmc-commands-1.5.2.jar下载1.5.2#Releasefabrikmc-core-1.5.2.jar下载1.5.2#Releasefabrikmc-game-1.5.2.jar下载1.5.2#Releasefabrikmc-igui-1.5.2.jar下载1.5.2#Releasefabrikmc-nbt-1.5.2.jar下载1.5.2#Releasefabrikmc-persistence-1.5.2.jar下载1.5.2#ReleaseThe project has been updated to 1.5.2. No changelog was specified.展开版本: 1.5.2支持游戏: 1.17.1类型:FabricRelease下载次数: 2981.5.1fabrikmc-all-1.5.1.jar下载1.5.1#Releasefabrikmc-commands-1.5.1.jar下载1.5.1#Releasefabrikmc-core-1.5.1.jar下载1.5.1#Releasefabrikmc-game-1.5.1.jar下载1.5.1#Releasefabrikmc-igui-1.5.1.jar下载1.5.1#Releasefabrikmc-nbt-1.5.1.jar下载1.5.1#Releasefabrikmc-persistence-1.5.1.jar下载1.5.1#ReleaseThe project has been updated to 1.5.1. No changelog was specified.展开版本: 1.5.1支持游戏: 1.17.1类型:FabricRelease下载次数: 3691.5.0fabrikmc-all-1.5.0.jar下载1.5.0#Releasefabrikmc-commands-1.5.0.jar下载1.5.0#Releasefabrikmc-core-1.5.0.jar下载1.5.0#Releasefabrikmc-igui-1.5.0.jar下载1.5.0#Releasefabrikmc-nbt-1.5.0.jar下载1.5.0#Releasefabrikmc-persistence-1.5.0.jar下载1.5.0#ReleaseThe project has been updated to 1.5.0. No changelog was specified.展开版本: 1.5.0支持游戏: 1.17.1类型:FabricRelease下载次数: 3851.4.4fabrikmc-all-1.4.4.jar下载1.4.4#Releasefabrikmc-commands-1.4.4.jar下载1.4.4#Releasefabrikmc-core-1.4.4.jar下载1.4.4#Releasefabrikmc-igui-1.4.4.jar下载1.4.4#Releasefabrikmc-nbt-1.4.4.jar下载1.4.4#Releasefabrikmc-persistence-1.4.4.jar下载1.4.4#ReleaseThe project has been updated to 1.4.4. No changelog was specified.展开版本: 1.4.4支持游戏: 1.17.1类型:FabricRelease下载次数: 2671.4.3fabrikmc-all-1.4.3.jar下载1.4.3#Releasefabrikmc-commands-1.4.3.jar下载1.4.3#Releasefabrikmc-core-1.4.3.jar下载1.4.3#Releasefabrikmc-igui-1.4.3.jar下载1.4.3#Releasefabrikmc-nbt-1.4.3.jar下载1.4.3#Releasefabrikmc-persistence-1.4.3.jar下载1.4.3#ReleaseThe project has been updated to 1.4.3. No changelog was specified.展开版本: 1.4.3支持游戏: 1.17.1类型:FabricRelease下载次数: 2401.4.2fabrikmc-all-1.4.2.jar下载1.4.2#Releasefabrikmc-commands-1.4.2.jar下载1.4.2#Releasefabrikmc-core-1.4.2.jar下载1.4.2#Releasefabrikmc-igui-1.4.2.jar下载1.4.2#Releasefabrikmc-nbt-1.4.2.jar下载1.4.2#Releasefabrikmc-persistence-1.4.2.jar下载1.4.2#ReleaseThe project has been updated to 1.4.2. No changelog was specified.展开版本: 1.4.2支持游戏: 1.17.1类型:FabricRelease下载次数: 2671.4.1fabrikmc-all-1.4.1.jar下载1.4.1#Releasefabrikmc-commands-1.4.1.jar下载1.4.1#Releasefabrikmc-core-1.4.1.jar下载1.4.1#Releasefabrikmc-igui-1.4.1.jar下载1.4.1#Releasefabrikmc-nbt-1.4.1.jar下载1.4.1#Releasefabrikmc-persistence-1.4.1.jar下载1.4.1#ReleaseThe project has been updated to 1.4.1. No changelog was specified.展开版本: 1.4.1支持游戏: 1.17.1类型:FabricRelease下载次数: 2601.4.0fabrikmc-all-1.4.0.jar下载1.4.0#Releasefabrikmc-commands-1.4.0.jar下载1.4.0#Releasefabrikmc-core-1.4.0.jar下载1.4.0#Releasefabrikmc-igui-1.4.0.jar下载1.4.0#Releasefabrikmc-nbt-1.4.0.jar下载1.4.0#Releasefabrikmc-persistence-1.4.0.jar下载1.4.0#ReleaseThe project has been updated to 1.4.0. No changelog was specified.展开版本: 1.4.0支持游戏: 1.17.1类型:FabricRelease下载次数: 2571.3.1fabrikmc-all-1.3.1.jar下载1.3.1#Releasefabrikmc-commands-1.3.1.jar下载1.3.1#Releasefabrikmc-core-1.3.1.jar下载1.3.1#Releasefabrikmc-igui-1.3.1.jar下载1.3.1#Releasefabrikmc-nbt-1.3.1.jar下载1.3.1#Releasefabrikmc-persistence-1.3.1.jar下载1.3.1#ReleaseThe project has been updated to 1.3.1. No changelog was specified.展开版本: 1.3.1支持游戏: 1.17.1类型:FabricRelease下载次数: 2661.3.0fabrikmc-all-1.3.0.jar下载1.3.0#Releasefabrikmc-commands-1.3.0.jar下载1.3.0#Releasefabrikmc-core-1.3.0.jar下载1.3.0#Releasefabrikmc-igui-1.3.0.jar下载1.3.0#Releasefabrikmc-nbt-1.3.0.jar下载1.3.0#Releasefabrikmc-persistence-1.3.0.jar下载1.3.0#ReleaseThe project has been updated to 1.3.0. No changelog was specified.展开版本: 1.3.0支持游戏: 1.17.1类型:FabricRelease下载次数: 2601.2.2fabrikmc-all-1.2.2.jar下载1.2.2#Releasefabrikmc-commands-1.2.2.jar下载1.2.2#Releasefabrikmc-core-1.2.2.jar下载1.2.2#Releasefabrikmc-igui-1.2.2.jar下载1.2.2#Releasefabrikmc-nbt-1.2.2.jar下载1.2.2#Releasefabrikmc-persistence-1.2.2.jar下载1.2.2#ReleaseThe project has been updated to 1.2.2. No changelog was specified.展开版本: 1.2.2支持游戏: 1.17.1类型:FabricRelease下载次数: 3931.2.1fabrikmc-all-1.2.1.jar下载1.2.1#Releasefabrikmc-commands-1.2.1.jar下载1.2.1#Releasefabrikmc-core-1.2.1.jar下载1.2.1#Releasefabrikmc-igui-1.2.1.jar下载1.2.1#Releasefabrikmc-nbt-1.2.1.jar下载1.2.1#Releasefabrikmc-persistence-1.2.1.jar下载1.2.1#ReleaseThe project has been updated to 1.2.1. No changelog was specified.展开版本: 1.2.1支持游戏: 1.17.1类型:FabricRelease下载次数: 3791.2.0fabrikmc-all-1.2.0.jar下载1.2.0#Releasefabrikmc-commands-1.2.0.jar下载1.2.0#Releasefabrikmc-core-1.2.0.jar下载1.2.0#Releasefabrikmc-igui-1.2.0.jar下载1.2.0#Releasefabrikmc-nbt-1.2.0.jar下载1.2.0#Releasefabrikmc-persistence-1.2.0.jar下载1.2.0#ReleaseThe project has been updated to 1.2.0. No changelog was specified.展开版本: 1.2.0支持游戏: 1.17.1类型:FabricRelease下载次数: 4220.1.1fabrikmc-core-0.1.1.jar下载0.1.1#Betafabrikmc-commands-0.1.1.jar下载0.1.1#Betafabrikmc-igui-0.1.1.jar下载0.1.1#Beta展开版本: 0.1.1支持游戏: 1.16.5类型:FabricBeta下载次数: 1,586全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
Silk |
楼主
2025-8-10 19:16:55
回复(0)
收起回复
|