* 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)
Squash of the following commits:
* Add way to register fluids and fluid attributes, WIP UNTESTED
* Move to correct package
* Update forge/build.gradle
* Add bucket item wrapper and add test mod
* Make it easier to declare attributes by suppliers
* Fix fabric support
* Change SimpleArchitecturyFluidAttributes to accept Supplier<Optional<T>>
* Make ArchitecturyLiquidBlock and ArchitecturyBucketItem accept Supplier
* Update testmod
* Link javadocs in the builder to make it easier to check
* Add ArchitecturyMobBucketItem and fix caps on ArchitecturyBucketItem
* Make SimpleArchitecturyFluidAttributes accept wildcard fluids
* getContainingFluid -> getContainedFluid
* Add supplier variant of the methods
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Max <maxh2709@gmail.com>
(cherry picked from commit bd9b3e73e4)
* 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
* BiomeModifications on Forge now uses Forge's builtin priority system
Signed-off-by: Max <maxh2709@gmail.com>
* Bump minor version
Signed-off-by: Max <maxh2709@gmail.com>
(You should still be using 1.18.1, though, as it is the only version supported by Mojang / Forge, and we may be switching to it permanently at a later date)
Signed-off-by: Max <maxh2709@gmail.com>
* Fix ServerGamePacketListenerImpl
Closes#165, closes#166
* Fix MixinGameRenderer by giving it an explicit ordering
The Fabric API mixin uses the default priority of 1000, so we use 1100 priority to apply before it. This results in this bytecode structure, where "F" is the Fabric API injections, "A" is the Architectury API injections, and "M" is the Minecraft function being injected pre/post: `FAMAF`.
* Fix MixinPhantomSpawner captures
* Fix MixinPatrolSpawner captures
* Fix MixinChunkSerializer captures
* 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>