* [BREAKING] pass entity to EquipmentSlotProvider
* Improve mixin for chunk unload event
* `TestContext#getBlockEntity` result can be used without checks/casts now
* Fix typos
* Add resource conditions to dynamic registries
* Support conditions in FabricDynamicRegistryProvider
- Add matching overloads for all add(...) methods which take a varargs
list of ResourceConditions.
- Add an additional overload for registering RegistryEntry.References
directly. This makes it a little easier to register directly from a
RegistryBuilder.
* Throw error if we cannot add resource conditions
* Rename EntryWithConditions to ConditionalEntry
(cherry picked from commit a5d5299dfb)
* Support loading a single condition instead of array
* Remove extra space
* Use LIST_CODEC field instead of CODEC.listOf()
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
---------
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit 83154f1bcb)
- Add all dynamic registries to the initial registry.
- Expose a getter for the registry future.
- Register cloners for all dynamic registries.
(cherry picked from commit ad4744939b)
* 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>