* Add way for other mods to indicate that they are fake players
* Implement "reasonable default" for fake players and fix inverted logic
Signed-off-by: Max <maxh2709@gmail.com>
Co-authored-by: Max <maxh2709@gmail.com>
(cherry picked from commit 42684fd87a)
(cherry picked from commit bfde8dee17)
(cherry picked from commit d3d656053d)
* Synchronise it properly?
* Use synchronised maps rather than local synchronisation
Signed-off-by: Max <maxh2709@gmail.com>
Co-authored-by: shedaniel <daniel@shedaniel.me>
* Fixed EntitySpawnExtension buffer being unable to read from, #208
* Release the extensions buffer when it is no longer needed
* Cleaned the buffer fix for EntitySpawnExtension
Co-authored-by: Paul <paul.l.preston@hotmail.com>
* Ensure paths returned by Platform are absolute, add javadocs to Platform
Signed-off-by: Max <maxh2709@gmail.com>
* Use putIfAbsent for event buses to clean up some minor nastyness
Signed-off-by: Max <maxh2709@gmail.com>
* Remove explicit NotNull annotation
* Add LifecycleEvent.SETUP for manipulating things after normal initialization
* Improve javadocs
* Fix broken english
* Update common/src/main/java/dev/architectury/event/events/common/LifecycleEvent.java
Co-authored-by: BasiqueEvangelist <basiqueevangelist@yandex.ru>
Signed-off-by: Max <maxh2709@gmail.com>
* Add support for PacketTransformer and a SplitPacketTransformer
* Add testmod and make it work
* Add experimental, Remove generics, they are pointless
* Add modify and removing for villager trades
- Add mixin for villager trades
- Add methods to register modify and removing
- Implement base for VillagerMixin to provide additional villager data
- Basic Access & Mixin change
- Add AT and AW
- Add overriding for max offers a villager or the wanderer can have
* Add rare check for wandering trader
* Remove todo comment
* rename some methods
* Solve reviews for #122
Move non api stuff into TradeRegistryData
Rename fields in MerchantOfferAccess
Move trade stuff into internal package
Mark internal trade classes as ApiStatus.Internal
* Minor refactors (discussed on Discord)
* Add doc for AbstractVillagerMixin
* Reformat code
* Update gradle.properties
Co-authored-by: Max <maxh2709@gmail.com>