* Add API to modify default item components
* Add test for removal
* Some review feedback
* API design changes
* Review feedback
* Add overload that takes a Collection<Item>
(cherry picked from commit 5bcea88aba)
* use knownPack to avoid syncing mod data packs.
* remove empty class
* checkstyle and licenses
* move debug logging from testmod into main module
* fix knownPackInfo not working for build-in data packs.
* make bundled data packs not required for client, and don't auto enable
* improve testmod with added builtin data pack + better error message
* Increase max known packs in C2S packet
* validate size before sending
* changeable with system property
* change mixin from ModifyConstant to ModifyArg to be more clear.
* Apply suggestions from code review
Co-authored-by: modmuss <modmuss50@gmail.com>
* store list of knownPacks as server start
avoids desync on pack change (since registries aren't reloaded)
* be extra safe: only request knownPacks that were enabled at server start and still are.
Doesn't rely on the fact that registries aren't synced anymore.
---------
Co-authored-by: modmuss <modmuss50@gmail.com>
(cherry picked from commit c0e5481f61)
* Buildscript changes
* Particle API: port and some refactor
* Add support for Ingredient in FabricBrewingRecipeRegistry
* Add private ctor to ClientPlayerBlockBreakEvents
Not related to port, but something I've found during the process.
Also adds final to CommonLifecycleEvents.
* Fix Sound API testmod
* Fix broken javadocs
* Codec-related changes
* Document behavior of SUCCESS_NO_ITEM_USED in UseEntityCallback
* Add getEnabledFeatures
* checkstyle
* ALLOW_ENCHANTING event
* Intrinsic enchantments + testmod
also fixed a bug in the testmod that prevented the custom damage handler from ever working
* Item-based override mechanism
* Replaces part of the use cases of the event with a convenient method to override in FabricItem.
* Updated and tested the testmod.
* javadoc
* Move event logic to FabricItemStack
* oops
* Simplify mixin
* Replace ActionResult with TriState
* Use TriState in testmod
* requests
* Clarify jdoc
* Ship without intrinsic enchantments at first
* Checkstyle
* Checkstyle
---------
Co-authored-by: modmuss50 <modmuss50@gmail.com>
* Replace FabricEntityTypeBuilder with EntityTypeBuilder + iface injection
* Finish and test entity type builder
* Deprecate FabricBlockEntityTypeBuilder
* Review fix
* Fixes based on review
* Some fixes
* Checkstyle
* Initial move to codec-based resource conditions
* Move default condition types to DefaultResourceConditionTypes
* Move built-in condition types to impl
* Run spotlessApply
* Move default condition registration to entrypoint in imp
* Formatting fixes
* Add back package-info.java
* Make it compatible with new DFU
* checkstyle
* Refactor FeaturesEnabledResourceCondition
* Pass RegistryWrapper and reduce reliance on statics
* Some more improvements
* Add back some tests
* Add more tests
* Add back tags_populated support, clean up code
* Some more improvements
* add javadocs (wip)
* Fix unfixed merge conflict
* Javadocs
* Fix null condition in addConditions
* Allow empty arrays in certain codecs
* Move addConditions to datagen impl
* Address reviews
* add debug log
* Store features in normal static field
* Fix TagsPopulatedResourceCondition#getType
---------
Co-authored-by: Apollo <102649729+Apollounknowndev@users.noreply.github.com>