Commit Graph

324 Commits

Author SHA1 Message Date
shedaniel
aa67d29812 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>
(cherry picked from commit 85146c5cc0)

(cherry picked from commit 30d7d50156)
2022-04-23 15:55:13 +08:00
shedaniel
8601b97107 Bump to 1.31 2022-04-15 12:46:35 +08:00
shedaniel
1a52108414 Add container render events (#240)
(cherry picked from commit 2c818cf492)

(cherry picked from commit e8ce7dbcb2)
2022-04-15 12:46:28 +08:00
shedaniel
b2b14d73c4 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 18:38:31 +08:00
shedaniel
03b0acc335 Fix #226 2022-03-27 17:03:32 +08:00
Hiroku
24a07946ec Fixed EntitySpawnExtension buffer being unable to be read from, Fix #208 (#220)
* 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>
2022-03-20 20:28:18 +08:00
shedaniel
99a20d00e5 Prevent getFeatures from crashing due to IndexOutOfRange 2022-03-04 10:06:44 +08:00
Max
4d75441531 Explicitly call Path.normalize on Platform paths, fixing #212
Signed-off-by: Max <maxh2709@gmail.com>
2022-02-28 11:39:07 +08:00
shedaniel
a788a4fe44 Mark OptiFabric as incompatible (#203) 2022-02-28 11:39:04 +08:00
shedaniel
cdabce32e4 Fix EventBuses always failing 2022-02-19 02:06:33 +08:00
shedaniel
933ada5c0c Remove Java 10 method usage 2022-02-19 00:57:44 +08:00
shedaniel
406eb4c87d Bump to 1.30 2022-02-19 00:54:32 +08:00
shedaniel
6241b262e9 [ci skip] Introduce item as an additional context (#189)
* Introduce item as an additional context

* Remove @Internal
2022-02-19 00:53:30 +08:00
shedaniel
d74f13e52a [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:50:33 +08:00
shedaniel
25e6a8d8ef [ci skip] Requires Fabric Loader 0.13.0 (#194) 2022-02-19 00:50:07 +08:00
Max
5d276f04ed [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:48:21 +08:00
Max
bad3d30ead Make DeferredRegister iterable
Signed-off-by: Max <maxh2709@gmail.com>
2022-02-06 13:15:51 +01:00
shedaniel
c7d7ce5129 Support loader 0.13.0 2022-02-01 23:46:45 +08:00
Max
8ff46417b1 Implement ClientLifecycleEvent on Forge (+ testmod)
Bump version to 1.29

Signed-off-by: Max <maxh2709@gmail.com>
2022-02-01 02:54:37 +08:00
Max
c8470cc109 Update buildscripts and license headers
Signed-off-by: Max <maxh2709@gmail.com>
2022-01-01 00:14:02 +01:00
shedaniel
9913b1ea5d (Backport) Introduce EntitySpawnExtension (#160)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 23:46:02 +01:00
Max
c68a637975 Backport of #154 and #172 to 1.16
Contains the following changes:
- Explicitly add `remap=true` to fix mixin failing in prod (#172)
- @Redirect workaround for closing #152 (#154)

Co-authored-by: shedaniel <daniel@shedaniel.me>
Co-authored-by: Mitchell Skaggs <skaggsm333@gmail.com>

Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 18:52:27 +01:00
Max
71041f688c (Try to) fix LVTs, backport of #167 2021-12-29 23:07:07 +01:00
davidalb97
4d8303f749 Backported #137 PR to 1.16 fabric:
Fixed PlayerAttackInvoker mixing loading crash on server side (#137)

Signed-off-by: apple <davidalb97@hotmail.com>
2021-12-27 18:55:43 +01:00
shedaniel
d6644b78d0 Backport #148 (LifecycleEvent.SETUP) to 1.16
* 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-27 18:52:05 +01:00
Max
037442c77b Add fabricloader and Fabric API to fmj depends (#151)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-26 23:33:31 +01:00
shedaniel
cb42c935c0 Move EnvExecutor executions to another class 2021-12-23 17:52:07 +08:00
shedaniel
62c985db3f Try to guard against NoClassDefFoundError for #158 2021-12-23 17:21:47 +08:00
Ivan Molodetskikh
2e2ecc366d ScreenInputDelegate: Call MOUSE_DRAGGED_POST correctly
It was erroneously calling the PRE event twice.
2021-12-18 17:05:37 +08:00
shedaniel
e9b63d98c4 Fix #150 2021-12-12 22:00:36 +08:00
shedaniel
452d0d1bb9 Remove hacks around RegistryEntry (#144) 2021-12-11 19:10:49 +08:00
shedaniel
5e338b40da Update to Loom 0.10 2021-12-09 01:40:05 +08:00
shedaniel
0a64ecda1d 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-09 01:34:31 +08:00
shedaniel
b0a80e0c73 Add Registries#forRegistry and delay getting forge mod event bus (#82)
* Add forRegistry

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Update gradle.properties
2021-11-26 01:58:29 +08:00
shedaniel
25cf13ea84 Don't release non split packets, bump minor version because we didn't 2021-10-23 19:13:05 +08:00
shedaniel
6b2506d1fd 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:44:16 +08:00
lythowastaken
0fcbf40c7f Feature/villager trades (#122)
* Add modify and removing for villager trades

- Add mixin for villager trades
- Add methods to register modify and removing
- Implement base for VillagerMixin to provide additional villager data
- Basic Access & Mixin change
- Add AT and AW
- Add overriding for max offers a villager or the wanderer can have

* Add rare check for wandering trader

* Remove todo comment

* rename some methods

* Solve reviews for #122

Move non api stuff into TradeRegistryData
Rename fields in MerchantOfferAccess
Move trade stuff into internal package
Mark internal trade classes as ApiStatus.Internal

* Minor refactors (discussed on Discord)

* Add doc for AbstractVillagerMixin

* Reformat code

* Update gradle.properties

Co-authored-by: Max <maxh2709@gmail.com>
2021-09-17 16:36:12 +02:00
Max
41345275cf Merge pull request #132 from architectury/feature/item_properties
Implement item properties
2021-08-29 13:55:19 +02:00
Max
3ff7772c8e [ci skip] bump version 2021-08-29 13:55:02 +02:00
shedaniel
c8e3ef6523 Add javadocs 2021-08-26 17:37:14 +08:00
shedaniel
1c2468735f Implement item properties 2021-08-24 04:16:50 +08:00
shedaniel
a8c546b1c1 Add license headers 2021-08-24 03:31:17 +08:00
Leo40Git
98395b6735 Add tool interaction hooks (#128)
Co-authored-by: shedaniel <daniel@shedaniel.me>
2021-08-24 03:28:18 +08:00
shedaniel
2cc20fa249 Update to architectury plugin 3.3 2021-08-06 17:20:03 +08:00
shedaniel
9a5de11b59 Switch to MethodHandlers to avoid wrapping exceptions with InvocationTargetException due to reflection 2021-08-06 17:18:00 +08:00
Kristiāns Micītis
289dd026f2 Added SimpleNetworkManager (#120)
* Added SimpleNetworkManager

* Implemented requested changes for SimpleNetworkManager

* Add javadoc to networking.simple

* Finish up PacketID docs

* Fix javadoc building

* Added license headers

* Renamed BasePacket to Message and PacketID to MessageType

* PacketDecoder -> MessageDecoder

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Rename constructor parameters

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Final touches

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Apply suggestions from code review

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

* Fixes to the javadocs

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Bump to 1.20

Signed-off-by: shedaniel <daniel@shedaniel.me>

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: shedaniel <daniel@shedaniel.me>
2021-07-12 12:00:55 +08:00
shedaniel
432b63befd Bump to 1.19
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-07-04 18:36:40 +08:00
shedaniel
5e0091e533 Merge remote-tracking branch 'Leo40Git/feature/food-props' into 1.16
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-07-04 18:36:29 +08:00
Max
910138f62a Merge pull request #118 from architectury/feature/wildcard_colors
Make ColorHandlers wildcard, fix #114
2021-07-01 18:41:12 +02:00
Leo40Git
f019deb815 Testmod
Restore variance
2021-07-01 15:52:49 +03:00