Commit Graph

279 Commits

Author SHA1 Message Date
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
shedaniel
d0972fbe57 Fix CF Publish
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-20 23:14:37 +08:00
shedaniel
3926bf2a91 Fix Collections$UnmodifiableRandomAccessList
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-20 22:04:01 +08:00
shedaniel
cccbaa2f11 Update FUNDING.yml
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-19 22:48:51 +08:00
Max
4aefdd1000 Remove 1.17 from Java 8 builds 2021-05-19 16:33:26 +02:00
shedaniel
47673c22f2 Merge remote-tracking branch 'architectury/1.16' into 1.16 2021-05-19 22:23:55 +08:00
shedaniel
109c1997cc Update to architectury plugin 3.2
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-19 22:23:48 +08:00
Max
a422420c67 Update pr.yml 2021-05-19 16:23:28 +02:00
Max
728457d416 Remove JDK 11 from build
(Also trying out a new syntax for build versioning that tries to cobble it together from gradle.properties, hopefully it works)
2021-05-19 16:15:17 +02:00
Max
1d1cbff0cd Update pr.yml 2021-05-19 01:53:40 +02:00
Max
648464f00a Update push.yml 2021-05-19 00:54:13 +02:00
Max
8ffbbb6a98 Update pr workflow 2021-05-18 18:07:36 +02:00
Max
43c8bae105 [norelease] Update to archloom 0.7.2 and Gradle 7 2021-05-18 17:49:41 +02:00
Max
0b2c0d8d74 Update push workflow 2021-05-18 17:36:14 +02:00
canitzp
98e06736ee Fix TradeRegistryImpl throwing an AssertionError at runtime (#87) 2021-05-17 22:16:00 +02:00