Commit Graph

306 Commits

Author SHA1 Message Date
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
Leo40Git
b644d103fa Forge implementation 2021-07-01 15:16:23 +03:00
Leo40Git
b7c5a106c1 Repackaging and such 2021-07-01 15:13:49 +03:00
Leo40Git
62dbfbd3b9 oops, forgot license 2021-07-01 15:06:29 +03:00
Leo40Git
1d10df6bb3 Make Fabric impl way simpler
Yeet NonNull annotations
2021-07-01 15:06:26 +03:00
Leo40Git
b682f3d9b7 Allow adding supplied effects to FoodProperties 2021-07-01 15:06:13 +03:00
shedaniel
790dafb0b5 Make ColorHandlers wildcard, fix #114
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-07-01 03:00:40 +08:00
shedaniel
f39c94aec3 Fix #113 and we should've bumped to 1.18
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-06-27 12:35:11 +08:00
Max
f9b04fc040 Merge pull request #110 from ModsByLeo/features/particle-factory
Particle Provider API
2021-06-27 02:18:06 +02:00
shedaniel
a22077a825 Fix #111
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-06-26 00:06:26 +08:00
shedaniel
9f8140fdec Some changes
- Migrate from ParticleFactories to ParticleProviderRegistry (We are not yarn)
- Format Code

Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-06-25 18:57:31 +03:00
Leo40Git
2c16f7ac09 Requested changes
PendingParticleProvider -> DeferredParticleProvider
parameter constructor -> provider
2021-06-25 15:06:26 +03:00
Leo40Git
c18c2c8d29 Remove unused accessor 2021-06-22 14:13:36 +03:00
Leo40Git
1ba9ae1a0b Add testmod
Added public static modifiers to methods (OOPS)
2021-06-20 19:43:19 +03:00
Leo40Git
81b0cc5821 Particle Factory API (closes architectury#93) 2021-06-20 17:30:32 +03:00
shedaniel
867764c200 Guard against unregistered fluid renderers
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-06-14 15:19:27 +08:00
Max
e5ec6701b0 Merge pull request #104 from architectury/feature/biome-modifications-phases
Implement phases for BiomeModifications on Forge
2021-06-11 11:52:54 +02:00
Max
375c56999f Address code review, add utility method to get features for specific step 2021-06-09 13:14:00 +02:00
Max
f3f881960f Add basic Javadoc to BiomeModifications 2021-06-09 01:57:34 +02:00