Commit Graph

195 Commits

Author SHA1 Message Date
shedaniel
17735f090b Update Forge mods.toml automatically 2022-06-16 18:44:54 +08:00
shedaniel
a22b7fc18d Publish jars with the loader suffix, fix testmod-common circular dependency 2022-06-16 18:39:47 +08:00
shedaniel
146fe8b8b9 Add stack-aware CraftingRemainingItem (#277)
* Add stack-aware CraftingRemainingItem
* Add JavaDocs

[norelease]
2022-06-16 11:58:10 +02:00
shedaniel
547f06f45e Migrate to Unified Publishing (#274)
* Migrate to Unified Publishing

* Proper changelog md

* Edit workflow
2022-06-13 00:56:07 +08: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
Max
4da029729c Add rudimentary support for modrinth publishing (#263)
* Add rudimentary support for modrinth publishing

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

* Reformat, disambiguate version number

Signed-off-by: Max <maxh2709@gmail.com>
2022-05-22 18:01:35 +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
fbb1868c0e Try to fix #256 again 2022-05-09 00:04:17 +08:00
shedaniel
71446496d4 Fix #256 2022-05-07 21:59:31 +08: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
ad879a803c [ci cancel] Add more fluid attributes (#247) 2022-05-02 01:41:19 +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
shedaniel
2c818cf492 [ci skip] Add container render events (#240) 2022-04-15 12:39:44 +08:00
shedaniel
77a0af6c03 Synchronise EventBuses properly, hopefully fixing "Where is architectury" race (#235)
* Synchronise it properly?

* Use synchronised maps rather than local synchronisation

Signed-off-by: Max <maxh2709@gmail.com>
Co-authored-by: shedaniel <daniel@shedaniel.me>
2022-04-10 03:40:55 +02:00
shedaniel
905407e49c Add 1.18.2 version constraints 2022-04-02 22:05:33 +08:00
shedaniel
03da3e6bfb Fix RegistrySupplier#listen and ArchitecturySpawnEggItem (#228) 2022-03-26 19:56:31 +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
d550eef8e2 Update to Forge 1.18.2 2022-03-02 11:43:45 +08:00
shedaniel
4508b98573 Merge remote-tracking branch 'architectury/1.18' into 1.18.2 2022-02-27 18:13:36 +08:00
shedaniel
6d1570d289 Fix EventBuses always failing 2022-02-19 02:06:26 +08: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
shedaniel
60b21d2364 [ci skip] Allow registering entries after it has been collected on Forge (#193)
* Allow registering entries after it has been collected on Forge

* Fix compilation
2022-02-19 00:43:32 +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
shedaniel
6530f388a9 Support loader 0.13.0 2022-02-01 23:19:56 +08: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
38a2e56461 BiomeModifications on Forge now uses Forge's builtin priority system (#188)
* 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>
2022-01-31 16:20:50 +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
Max
2aa674616b Loosen version constraints to accept any 1.18 version
(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>
2021-12-27 17:43:48 +01:00
Max
a5d32c3f9a Update to 1.18.1, Forge 39, and add Loader and FAPI to fmj depends (#151)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-26 23:18:23 +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
Juuxel
90d4a59986 Add 1.18.1 to MC versions on CF (#156) 2021-12-22 14:39:03 +08:00
shedaniel
3083c82843 Add ClientReloadShadersEvent (#149)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-20 03:49:44 +01:00
shedaniel
11ef83f9de Fix #150 2021-12-12 22:01:28 +08:00
shedaniel
ebbc2a6490 Remove hacks around RegistryEntry (#144) 2021-12-11 19:05:36 +08:00
shedaniel
7857615bfc Migrate to transitive access wideners (#146)
* Migrate to transitive access wideners

* Fix invalid AW

* Bump minor version, changes to gradle buildscript

Co-authored-by: Max <maxh2709@gmail.com>
2021-12-08 22:17:44 +08:00
shedaniel
7d745d612c Re-use RenderTooltipEvent#getPoseStack on forge 2021-12-02 17:25:40 +08:00
shedaniel
582e0a001c Update Forge to enable Mixins 2021-12-02 17:25:23 +08:00
shedaniel
eeaaf273c6 Forge 1.18 Support 2021-12-02 01:11:27 +08:00
shedaniel
d49d13b19f Merge remote-tracking branch 'architectury/1.17' into 1.18
# Conflicts:
#	gradle.properties
2021-11-27 00:19:12 +08:00
shedaniel
7d721c8521 Add Registries#forRegistry and delay getting forge mod event bus (#82) 2021-11-27 00:18:55 +08:00
shedaniel
a7ecdcf578 Removed Deprecated API 2021-11-14 02:32:49 +08:00
shedaniel
a6a361e5e1 Add support for PacketTransformer and a SplitPacketTransformer (#142)
* Add support for PacketTransformer and a SplitPacketTransformer

* Add testmod and make it work

* Add experimental, Remove generics, they are pointless
2021-10-23 18:27:28 +08:00