Commit Graph

293 Commits

Author SHA1 Message Date
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
Max
1a738973af Implement phases for BiomeModifications on Forge 2021-06-09 01:56:49 +02:00
shedaniel
c26b24a697 Fix BiomeModifications phases on fabric
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-31 19:50:40 +08:00
Max
df203bd7fc Merge pull request #99 from architectury/fix/98 2021-05-31 12:07:04 +02:00
shedaniel
7c89701052 Fix #98
Please merge when CF is back

Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-31 14:15:59 +08:00
shedaniel
85b3b3909d Add Deprecated and ScheduledForRemoval while appropriate
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-30 19:07:35 +08:00
canitzp
66bcf630eb Add Javadocs for all events (#91)
* javadoc for ClientChatEvent

* javadoc for ClientPlayerEvent

* javadoc for ClientRawInputEvent

* Added javadoc for ClientScreenInputEvent

* Bit refactoring and removed javadoc @see to the caller methods

* Add javadoc for BlockEvent

* Add javadoc for ChatEvent

* Add javadoc for CommandPerformEvent and CommandRegistrationEvent

* Add javadoc for EntityEvent

* Add javadoc for ExplosionEvent

* Add javadoc for GuiEvent

* Add javadoc for InteractionEvent

* Add javadoc for LightningEvent, RecipeUpdateEvent & TextureStitchEvent

* Add javadoc for LifecycleEvent & ClientLifecycleEvent

* Add javadoc for TooltipEvent

* Add javadoc for TickEvent and partly PlayerEvent

* More javadoc for PlayerEvent

* Finally all event have javadoc

* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandPerformEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandPerformEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandPerformEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/ChatEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandRegistrationEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/client/ClientScreenInputEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/client/ClientScreenInputEvent.java

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

* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Update common/src/main/java/me/shedaniel/architectury/event/events/PlayerEvent.java

Co-authored-by: Max <maxh2709@gmail.com>

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

* Apply suggestions from code review

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

* Applied some more reviews

* Applied some more reviews

* Applied suggestions

* Reformat and apply some minor suggestions

* Apply suggestions from review (first batch)

* Remove double return javadoc

* Apply suggestions from code review

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

* Add "scaled" to mouse coordinates

* Final touches

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

* Remove invalid tips

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

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Max <maxh2709@gmail.com>
Co-authored-by: shedaniel <daniel@shedaniel.me>
2021-05-28 17:14:55 +02:00
canitzp
371925b28d Add NetworkManager hook for Entity spawn packets (#88)
* New utility hook for creating a entity spawn packet. before every mod had to implement this in itself.

* Apply suggestions from code review

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

* Update common/src/main/java/me/shedaniel/architectury/networking/NetworkManager.java

* Update common/src/main/java/me/shedaniel/architectury/networking/NetworkManager.java

* Properly implement SpawnEntityPacket & Format style

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

* Format

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

* createEntitySpawnPacket -> createAddEntityPacket for mojmap consistency

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

* Bump version to 1.17

Co-authored-by: Max <maxh2709@gmail.com>
Co-authored-by: shedaniel <daniel@shedaniel.me>
2021-05-27 19:34:50 +02:00
Max
30dcaa480b Update pr.yml 2021-05-27 01:04:52 +02:00
canitzp
582ededddd Add Chunk data save and load events, closes #89 (#92)
* Created Chunk save and load event. Closes #89

* Fixed missing licence

* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java

* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java

* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java

* Supply ServerLevel in ChunkEvent.LOAD, style cleanup

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

* Add "Data" suffix to Chunk IO Events and mark level as nullable for load

* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java

* Bump to 1.16

Co-authored-by: shedaniel <daniel@shedaniel.me>
Co-authored-by: Max <maxh2709@gmail.com>
2021-05-27 01:03:20 +02:00
shedaniel
d737e8e2b7 Fix #94
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-26 14:53:19 +08:00
Max
d661265922 Update pr.yml 2021-05-20 22:53:10 +02:00
Max
f6e86f7b73 Revert "Update to architectury plugin 3.2"
This reverts commit 109c1997
2021-05-20 19:44:28 +02:00
shedaniel
29c7fa1646 Bump to 1.15 because build numbers have reset
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-20 23:17:46 +08:00