Commit Graph

228 Commits

Author SHA1 Message Date
Max
d8cf9ed7a5 Fix ClientChatEvent.RECEIVED *not* using CompoundEventResult
I was a bit too eager with the previous commit, sorry :P

Signed-off-by: Max <maxh2709@gmail.com>
2022-06-08 18:43:32 +02:00
Max
04aa5c1bb2 Fix ClientChatEvent using incompatible proxies
Signed-off-by: Max <maxh2709@gmail.com>
2022-06-08 17:34:26 +02:00
shedaniel
c77f040c21 Update to 1.19 2022-06-08 21:35:41 +08:00
Max
551edceb82 Clean up BlockEntityHooks
Signed-off-by: Max <maxh2709@gmail.com>
2022-06-08 13:40:10 +02:00
Max
c870ccab83 Remove most deprecated features marked for removal in previous versions
Signed-off-by: Max <maxh2709@gmail.com>
2022-06-08 13:17:21 +02:00
shedaniel
d13267a721 Merge remote-tracking branch 'architectury/1.18.2' into 1.19
# Conflicts:
#	fabric/build.gradle
#	forge/build.gradle
#	gradle.properties
2022-05-29 16:59:22 +08:00
shedaniel
23c5587442 Fix split packet transformer splitting into wrong parts, minus 10 more bytes for safety (#270) 2022-05-28 13:30:39 +02:00
Max
3b8b9049e0 Fix Platform#getFilePath not returning the *root* file path on Forge (#269)
* Platform#getFilePath now actually returns the *root* path on forge

Signed-off-by: Max <maxh2709@gmail.com>

* Add Mod#findResource (please stop yelling at me now kthx)

Signed-off-by: Max <maxh2709@gmail.com>
2022-05-28 11:54:44 +02:00
Max
517205efdc Add Platform#getFilePaths (#268)
Signed-off-by: Max <maxh2709@gmail.com>
2022-05-27 17:31:05 +02:00
shedaniel
258d23c62e Update to 1.19-pre1 2022-05-19 20:19:08 +08:00
shedaniel
0adf9a2e6d Update to 22w19a 2022-05-13 08:11:11 +08:00
shedaniel
3e4cd1f841 Merge remote-tracking branch 'architectury/1.18.2' into 1.19
# Conflicts:
#	gradle.properties
#	testmod-common/src/main/java/dev/architectury/test/item/TestBlockInteractions.java
2022-05-13 07:13:53 +08:00
Max
b3e3c7ee00 [ci skip] Mark classloading hack as Internal
Signed-off-by: Max <maxh2709@gmail.com>
2022-05-11 00:52:34 +02:00
Max
aa008479a1 Fix fluid testmod, add dummy init method to FluidStack (classloading 😍)
Signed-off-by: Max <maxh2709@gmail.com>
2022-05-11 00:49:36 +02:00
shedaniel
bd9b3e73e4 Add fluid block and flowing fluid (#251)
[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>
2022-05-06 13:51:25 +02:00
shedaniel
3532d24577 Fix some broken features and random crashes (#253)
[ci skip]
2022-05-06 13:40:02 +02:00
shedaniel
5318686674 Add ArchitecturyRecordItem (#250)
[ci skip]
2022-05-06 13:39:37 +02:00
shedaniel
d74e5729ff Merge remote-tracking branch 'architectury/1.18.2' into 1.19
# Conflicts:
#	fabric/src/main/java/dev/architectury/hooks/fluid/fabric/FluidStackHooksImpl.java
#	gradle.properties
2022-05-05 16:10:08 +08:00
shedaniel
ad879a803c [ci cancel] Add more fluid attributes (#247) 2022-05-02 01:41:19 +08:00
shedaniel
e901cc953f Update to 22w17a 2022-04-28 14:01:55 +08:00
shedaniel
ce779d56b8 Merge remote-tracking branch 'architectury/1.18.2' into 1.19
# Conflicts:
#	gradle.properties
2022-04-21 02:02:23 +08:00
shedaniel
85146c5cc0 Introduce FluidBucketHooks.getFluid (#243)
* Introduce FluidBucketHooks.getFluid

* Update common/src/main/java/dev/architectury/hooks/fluid/FluidBucketHooks.java

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-04-19 01:37:13 +08:00
Emma C. Pointer-Null
c4ab233286 Make AW for MenuType$MenuSupplier transitive, deprecate MenuRegistry.of (#244) 2022-04-16 20:16:46 +08:00
shedaniel
b58658ac69 Fix createLoop for RENDER_CONTAINER_BACKGROUND
(cherry picked from commit 05444b723a)
2022-04-15 12:47:02 +08:00
shedaniel
2c818cf492 [ci skip] Add container render events (#240) 2022-04-15 12:39:44 +08:00
shedaniel
5aa084c679 Port to 22w14a 2022-04-07 11:39:26 +08:00
shedaniel
ae64907f68 Fix RegistrySupplier#listen and ArchitecturySpawnEggItem (#228) 2022-04-01 19:53:21 +08:00
shedaniel
03da3e6bfb Fix RegistrySupplier#listen and ArchitecturySpawnEggItem (#228) 2022-03-26 19:56:31 +08:00
shedaniel
4d8ddec994 Update to 22w12a 2022-03-25 21:39:04 +08:00
Emma Pointer-Null
dbb955808f Update to 22w11a (#222)
* Update to 22w11a

* fix aw

* update fapi ver
2022-03-19 20:58:32 +08:00
shedaniel
36a5aea8aa Big clean up, more details in the PR (#216)
* 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
2022-03-12 00:01:49 +08:00
shedaniel
5f63bbafea Prevent getFeatures from crashing due to IndexOutOfRange 2022-03-04 09:50:23 +08:00
shedaniel
d550eef8e2 Update to Forge 1.18.2 2022-03-02 11:43:45 +08:00
shedaniel
b0517249b6 Merge remote-tracking branch 'architectury/1.18' into 1.18.2 2022-03-02 10:21:31 +08:00
Max
ae849d58c8 Explicitly call Path.normalize on Platform paths, fixing #212
Signed-off-by: Max <maxh2709@gmail.com>
2022-02-27 15:51:09 +01:00
shedaniel
d2cb2a6f68 Merge remote-tracking branch 'architectury/1.18' into 1.18.2 2022-02-19 00:58:24 +08:00
shedaniel
b5aa583b02 [ci skip] Introduce item as an additional context (#189)
* Introduce item as an additional context

* Remove @Internal
2022-02-19 00:43:41 +08:00
Max
4c2ccc043e [ci skip] Some cleanup for Platform class and other platform-specific stuff (#201)
* 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
2022-02-19 00:43:12 +08:00
shedaniel
6d1a5f081c Properly update to 22w06a 2022-02-12 02:03:53 +08:00
shedaniel
6dff58485f Drop 1.18/1.18.1 Support, it now compiles 2022-02-10 10:03:56 +08:00
Max
917b70d50a Make DeferredRegister iterable
Signed-off-by: Max <maxh2709@gmail.com>
2022-02-06 13:10:40 +01:00
Max
fc31afa2b8 Add docs and util methods from #104 on top of previous PR
(I **completely** forgot I already implemented this for 1.16...)

Signed-off-by: Max <maxh2709@gmail.com>
2022-01-31 19:02:07 +01:00
Max
5a6f4b1176 Implement ClientLifecycleEvent on Forge (+ testmod)
Signed-off-by: Max <maxh2709@gmail.com>
2022-01-30 03:23:02 +01:00
Max
8b282f5c5a 3.4 : License and workflow updates, deprecate NbtType, merge #159 and #160
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 23:06:44 +01:00
shedaniel
39e216bbed [ci skip] Entity Model Layer Reg, and move to new package (#159) 2021-12-31 22:36:08 +01:00
shedaniel
6a6cad7025 [ci skip] Introduce EntitySpawnExtension (#160)
* Introduce EntitySpawnExtension

* Add to mixins

* Update common/src/main/java/dev/architectury/extensions/network/EntitySpawnExtension.java

* Update common/src/main/java/dev/architectury/networking/NetworkManager.java

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-12-31 22:35:40 +01:00
shedaniel
eea1b5182c Add LifecycleEvent.SETUP for manipulating things after normal init (#148)
* 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>
2021-12-26 20:20:00 +01:00
Max
630762b78e Add AWs for RenderType.create and the RenderType$CompositeState class (#155) 2021-12-20 04:17:46 +01:00
shedaniel
3083c82843 Add ClientReloadShadersEvent (#149)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-20 03:49:44 +01:00
shedaniel
ebbc2a6490 Remove hacks around RegistryEntry (#144) 2021-12-11 19:05:36 +08:00