[ci skip]
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>
* 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>
* Big clean up, more details in the PR
* Fix build
* Deprecate BlockProperties, generate AWs for Item constructors, Block constructors and RenderStateShard fields
* Add a few more RenderType AWs
* Deprecate BlockPropertiesExtension
* Set defaultType on resolving the entity type in SpawnEggItem
* Used the wrong object
* Add license information for generating AWs
* Add link to original PR
* Properly add support for forge vanilla registries
* Bump to 4.1
* 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
(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>