
custom-crafter-api
An advanced PaperMC crafting engine for building complex recipes with NBT-supported custom items.
493
2
Список изменений
✨ New Features and Enhancements
- [New Feature] Added
ReplaceableResultSupplierinterface: writes items back into crafting UI slots after a craft, enabling ingredient transformation (e.g. returning a modified tool) and byproduct placement patterns. - [New Feature] Added
ResultSupplier.Context.CallModeenum (CRAFT/ICON): allowssupply()implementations to distinguish a real craft from an icon-generation call (e.g. in the AllCandidateUI display), replacing the oldisMultipleDisplayCallfield. - [New Feature] Added
CraftInputInterruptEvent: fired when a player interacts with input slots or closes the CraftUI while a craft process is in progress. - [New Feature] Added
PreventDoubleCraftEvent: fired when a player attempts to start a new craft while one is already running. - [Enhancement] Added
PartialSearchAPI: asynchronous partial recipe match search for crafting hints and autocomplete suggestions. Supports both shaped and shapeless recipes. - [New Feature] Added
CVanillaRecipe.fromTransmute(): converts a vanillaTransmuteRecipeinto aCVanillaRecipe, enabling transmute recipes to be used withPartialSearchand other CustomCrafter features. Each ingredient'sRecipeChoiceis converted to aCMatterPredicateviaRecipeChoice.test(), so NBT and exact-item constraints are preserved.
🛠 Fix
- Fixed a race condition in
ONLY_FIRSTsearch mode that could return an empty result even when a matching recipe existed. - Fixed
isAsync()returning an inverted value inCMatterPredicate.ContextandCRecipePredicate.Context. CompletableFuturetasks now consistently run on virtual threads.
Файлы
custom-crafter-api-5.0.21.jar(6.43 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
5.0.21
Загрузчики
FoliaPaperPurpur
Версии игры
1.21.4–26.1.2
Загрузок
5
Дата публикации
6 дн. назад
