Commit Graph

449 Commits

Author SHA1 Message Date
Max
b1e7c89ffb Fix args order in player clone event (supersedes and closes #391) 2023-04-05 16:33:51 +02:00
Max
b8dcba2ee5 Fix #398 (supersedes and closes #395) 2023-04-05 16:32:40 +02:00
Max
b7c1fdfd3e Bump version for release 2023-02-06 17:54:43 +01:00
desht
1524550146 Add PlayerEvent.ATTACK_ENTITY (#380)
[ci skip]

* Add PlayerEvent.ATTACK_ENTITY
* Fired from Forge's AttackEntityEvent and Fabric's AttackEntityCallback
* When player is about to attack any entity (not just living) with left-click
* javadoc parameter alignment
* import cleanup
2023-02-06 17:53:43 +01:00
Max
d022087cd5 Add support for adding PacketTransformers to SimpleNetworkManager messages (#379)
[ci skip]

* Add support for adding PacketTransformers to SimpleNetworkManager messages
* Mark new methods as experimental, add javadocs
* Update common/src/main/java/dev/architectury/networking/simple/SimpleNetworkManager.java
* Update common/src/main/java/dev/architectury/networking/simple/SimpleNetworkManager.java

Co-authored-by: shedaniel <daniel@shedaniel.me>
2023-02-06 17:53:24 +01:00
Max
12526404bd Fix injection point on lightning strike event (#352) 2022-12-09 00:44:15 +08:00
Juuz
ec9cb04ebc Fix Loom 1.0 removals (#348)
* Replace loom.forge.localMods with loom.mods

* Replace javax annotations with jetbrains

[norelease]
2022-11-20 00:33:48 +01:00
shedaniel
d84e6dc3f9 Bump to 4.10 2022-10-23 01:03:56 +08:00
Max
382e6b0bf0 Fix crash with EntityEvent.LIVING_CHECK_SPAWN on Forge (#345)
* Fix crash with EntityEvent.LIVING_CHECK_SPAWN on Forge

* Fix whitespace

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

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-10-23 01:02:47 +08:00
shedaniel
d26471de0e [ci skip] Fix #340 (#341) 2022-10-23 01:02:39 +08:00
Max
0138323e7d Use fluid variant rendering for sprites / colours on Fabric (#337) 2022-09-11 19:00:45 +02:00
shedaniel
77b109e8c1 Bump to 4.9 2022-08-11 19:06:53 +08:00
shedaniel
3ee2355b2d [ci skip] Add LiquidBlock.arch$getFluid and fix MixinFoodPropertiesBuilder (#316) 2022-08-11 19:05:55 +08:00
shedaniel
0fad11b5fe Fix dumb injected interfaces 2022-08-11 03:32:05 +08:00
shedaniel
d077b86894 Fix #313 2022-08-08 18:05:29 +08:00
Max
4c280e7d8c Fix toString on RegistryEntryId (used in logging), make it a record 2022-08-07 21:58:32 +02:00
Max
48b2494c25 Bump minor version for release 2022-08-07 16:02:32 +02:00
shedaniel
739359e5b2 Add simple interface injection extensions (#257)
* Add simple interface injection extensions
* Update to only add holders for intrusive registry entries
* Add arch$registryName

[ci skip]
2022-08-07 16:01:46 +02:00
Max
2f150cf819 Add more validation to NetworkManagerImpl (#310)
[ci skip]
2022-08-07 16:01:06 +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
7b4b91ea47 Bump to 4.6 2022-07-23 03:09:02 +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
shedaniel
dfce9f247d [ci skip] Add WorldGen testmod (#298)
(cherry picked from commit c259d62ba3)
2022-07-23 03:00:24 +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
128141a99d [ci skip] Fix Item pickup not being cancellable on Forge (#301) 2022-07-20 23:22:38 +08:00
Max
a78dd4ea1b Fix Entity.getEncodeId not being transitive accessible on 1.18 2022-07-01 13:54:16 +02:00
shedaniel
89e902d7bf Add inner classes of RenderStateShard into T-AW (#283) 2022-06-22 18:22:42 +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
4f17a84f1e Apply LQF for better decompilation, bump version for release 2022-06-16 12:02:58 +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
547f06f45e Migrate to Unified Publishing (#274)
* Migrate to Unified Publishing

* Proper changelog md

* Edit workflow
2022-06-13 00:56:07 +08:00
shedaniel
796ee4fc14 Fix SplitPacketTransformer not saving enough space for packet id (#273) 2022-06-09 19:16:14 +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
42684fd87a Add way for other mods to indicate that they are fake players (#202)
* 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>
2022-05-26 20:15:30 +02:00
Max
a3271966ad Merge remote-tracking branch 'origin/1.18.2' into 1.18.2 2022-05-22 19:49:48 +02:00
Max
7abfd95e7b Add quilt to list of supported loaders (thanks to @wafflecoffee for confirming!)
[ci skip]

Signed-off-by: Max <maxh2709@gmail.com>
2022-05-22 19:49:42 +02:00
Max
56c36e2162 [ci skip] Update README.md 2022-05-22 18:55:26 +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
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
fbb1868c0e Try to fix #256 again 2022-05-09 00:04:17 +08:00
shedaniel
476cea2aff Make Architectury API publish to the same CF project
(cherry picked from commit b11b717671)
(cherry picked from commit a59d038a1f)
2022-05-07 22:02:38 +08:00
shedaniel
71446496d4 Fix #256 2022-05-07 21:59:31 +08:00
Max
34a27866dd Bump to release version 4.4 2022-05-06 13:51:51 +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