Commit Graph

220 Commits

Author SHA1 Message Date
shedaniel
1c98573c5f Revert "Update to 1.19.1 (#302)"
This reverts commit b316dde8ba.
2022-08-06 10:05:43 +08:00
Max
6624dbe295 Merge branch '1.18.2' into 1.19 2022-07-31 18:59:43 +02:00
Max
a7d31393a0 Fix ParticleProviderRegistry not working properly on Forge, add Javadocs (#305)
* Fix ParticleProviderRegistry not working properly on Forge, add Javadocs

Based on https://github.com/architectury/architectury-api/pull/196#issuecomment-1200268981, supersedes #196

* Update testmod, fix bounds on deferred register

* Warn when registering particles too late on Forge
2022-07-31 18:48:38 +02:00
shedaniel
b316dde8ba Update to 1.19.1 (#302)
* Update to 1.19.1

* Make it compile

* Update to 1.19.1

* Set 1.19.1 as the publishing version
2022-07-28 19:45:57 +08:00
itsmeow
81f4de28ba Implement hasTag onto BiomeContext (#272)
* Implement hasTag onto BiomeContext
* Improve optional handling

[norelease] to allow for version bumping and reformatting before release

(cherry picked from commit 16a7d23602)
2022-07-23 03:08:43 +08:00
Juuxel
6b83a15e81 [ci skip] Add loot table modification event (#287)
* Add loot table modification event

Closes #42. It's a simple wrapper around the platform events.

* Add param for builtin loot tables

Co-authored-by: shedaniel <daniel@shedaniel.me>

(cherry picked from commit f0555ce0eb)
2022-07-23 03:00:07 +08:00
Max
2f5d4444c8 Fix Item pickup not being cancellable on Forge (#301)
(cherry picked from commit 128141a99d)
2022-07-22 20:07:36 +08:00
Juuxel
f0555ce0eb [ci skip] Add loot table modification event (#287)
* Add loot table modification event

Closes #42. It's a simple wrapper around the platform events.

* Add param for builtin loot tables

Co-authored-by: shedaniel <daniel@shedaniel.me>
2022-07-20 23:22:47 +08:00
Max
128141a99d [ci skip] Fix Item pickup not being cancellable on Forge (#301) 2022-07-20 23:22:38 +08:00
shedaniel
216556bab6 Fix #294 2022-07-14 22:03:52 +08:00
shedaniel
37c5c7d1fe Fix Support for 41.0.94 (#295)
* Fix Support for 41.0.94

* Bump to 5.9
2022-07-12 17:19:53 +08:00
shedaniel
fe632a10bd Fix Support for 41.0.64 (#292)
* Update to Forge 41.0.64

* Bump to 5.8
2022-07-08 23:03:30 +08:00
shedaniel
6952fec6ee Update mods.toml 2022-06-16 18:46:05 +08:00
shedaniel
f8fc466c39 Merge remote-tracking branch 'architectury/1.18.2' into 1.19 2022-06-16 18:45:21 +08:00
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
Max
192d3a9d26 Merge branch '1.18.2' into 1.19 2022-06-16 12:03:36 +02:00
Max
7d86eba267 Implement Forge's new Fluid API (#280)
* (Untested) fixes for the new Forge Fluid API
* Migrate ArchitecturyFlowingFluid to FluidTypes
* Add overlay textures, fix compile issues
* Fix Supplier import
* Add FluidState variant of get texture and color methods
* Deprecate combined render properties getter in favour of separate stack- and state-aware getters
* Add overlay texture override to SimpleArchitecturyFluidAttributes
* Update common/src/main/java/dev/architectury/core/fluid/ArchitecturyFluidAttributes.java

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

[norelease]
2022-06-16 11:59:08 +02:00
shedaniel
146fe8b8b9 Add stack-aware CraftingRemainingItem (#277)
* Add stack-aware CraftingRemainingItem
* Add JavaDocs

[norelease]
2022-06-16 11:58:10 +02:00
shedaniel
a997cd44c1 Fix #278 (#281) 2022-06-15 19:46:43 +08:00
shedaniel
aec32d5f42 Migrate to Unified Publishing (#274)
[norelease] to avoid empty release

* Migrate to Unified Publishing

* Proper changelog md

* Edit workflow

(cherry picked from commit 547f06f45e)
2022-06-14 00:00:53 +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
78ec6761a0 Reformat and cleanup merged PR, bump minor version 2022-06-09 19:49:07 +02:00
itsmeow
16a7d23602 Implement hasTag onto BiomeContext (#272)
* Implement hasTag onto BiomeContext
* Improve optional handling

[norelease] to allow for version bumping and reformatting before release
2022-06-09 19:47:34 +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
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
5d4a8d9506 Add rudimentary support for modrinth publishing (#263)
(cherry picked from commit 4da029729c)
Signed-off-by: Max <maxh2709@gmail.com>
2022-05-22 18:36:27 +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