
Moonlight Core (ML Core)
Moonlight Core is a layer abstraction of Minecraft mod loaders that is aimed to help with multi-loader mod development giving developers utilities for their mods.
5.5K
4
[Fabric] MoonlightCore | 1.20.1-5.1.8
Release4 мес. назад
Список изменений
MoonlightCore | 5.1.8
1. Transfer API:
The transfer API had some additions, changes and cleanup to its code:
Additions:
-
Added methods to simulate insert/extract methods from
StorageIOclasses that won't perform any action than calculate the result value -
Added some new storages and wrappers:
RangedStorageSingleItemResourceStorageSingleItemStorageCursorSlotWrapperSingleFluidStorage
Changes:
- Now the transactional methods like insert/extract don't need strictly a
Transactionand can take aTransactionContextinstead - Now the
Storageinterface (and subclasses/sub-interfaces) don't strictly need aTransferResourceand can take instead any kind of value specified without needing to implementTransferResource(this with most of the subclasses, there are some that still need it)
2. Registry
Additions:
- Added some
Registrate(Tterrag1098's Registrate) builders for the entries, this may be util for its methods (basic things that may not need a special-case builder still need to use theDeferredRegistrar#registermethod)
Changes:
- Replaced
RegistryHelperwithDeferredRegistrarwhich manages better the registry entries RegistryEntrynow only takes the key of the entry instead of key and value candidateRegistryEntrynow only implementsNonnullSupplierthat works with an inner holder now instead of aSupplierand cached value
Miscellaneous
- Added
EntityEvent#ATTRIBUTE_CREATIONthat is invoked just before theCommonLifecycleEvent#SETUPevent so you (modder) can create your entity's attributes - Returned the old
AttachmentType$Builderclass - Added
ByteBufCodecs#fromCodecmethod to de/serialize data from an existing 'normal'Codec
Файлы
moonlightcore-fabric-1.20.1-5.1.8.jar(576.29 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
5.1.8
Загрузчики
Fabric
Версии игры
1.20.1
Загрузок
14
Дата публикации
4 мес. назад
