Commit Graph

51 Commits

Author SHA1 Message Date
shedaniel
8b262d07c0 Refactor and 1.17-pre1 (#96)
* Fix #94

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

* 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>

* Update pr.yml

* 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>

* 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>

* Refactor

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

* Update common/src/main/java/dev/architectury/event/events/common/InteractionEvent.java

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

* Apply suggestions from code review

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

* attack -> hurt

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

* Update @param for InteractionEvent#FARMLAND_TRAMPLE

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

* world -> level

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

* Relocate hooks

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

* Organize imports

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

* Registry -> Registrar Please voice out your opinion!!

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

* Some more renames
itemOptional -> optionalItem
RegistryBuilder -> RegistrarBuilder
RegistryOption -> RegistrarOption
Not forcing RegistryEntry on new registries, vanilla types don't have them

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

* Java 16-ification

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

* Optimise imports after the var change

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

* Un-minimize architectury-common.mixins.json

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

Co-authored-by: canitzp <12819060+canitzp@users.noreply.github.com>
Co-authored-by: Max <maxh2709@gmail.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-05-30 19:08:11 +08:00
Max
3507e55bd4 [norelease] Merge remote-tracking branch 'architectury/1.16' into 1.17 2021-05-20 23:29:18 +02:00
Max
f6e86f7b73 Revert "Update to architectury plugin 3.2"
This reverts commit 109c1997
2021-05-20 19:44:28 +02:00
shedaniel
1404a33f40 Update to 21w20a
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-20 23:00:12 +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
43c8bae105 [norelease] Update to archloom 0.7.2 and Gradle 7 2021-05-18 17:49:41 +02:00
Max
428f98be44 Reformat and bump version 2021-05-15 00:13:39 +02:00
shedaniel
4ef8729174 Update to Architectury Plugin 3.1 to support detecting the api FabricLoader
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-03 01:53:45 +08:00
shedaniel
ac94c33e07 Re-license header 2021-04-13 19:40:44 +08:00
shedaniel
db1237448a Update plugins 2021-03-08 01:16:37 +08:00
shedaniel
0dbf72667d Update plugin 2021-03-01 23:46:34 +08:00
shedaniel
bf9efc708f Update plugins 2021-03-01 21:30:24 +08:00
shedaniel
89ce4c7c58 Fix BlockEntityExtension @Shadow remapping 2021-02-27 17:48:34 +08:00
shedaniel
568f624467 Update architectury-plugin to 3.0.89 and fix #51 2021-02-26 20:36:32 +08:00
shedaniel
60cc189d60 Remove local testing build of transformer 2021-02-26 02:18:05 +08:00
shedaniel
c8aeff0823 Update architectury-plugin to 3.0.88 2021-02-26 02:16:53 +08:00
shedaniel
7e743dcb64 Add licenses and implement optional tags, requires some testing. 2021-02-23 00:16:26 +08:00
shedaniel
78043a3109 Migrate to Arch Plugin 3 2021-02-19 02:11:13 +08:00
shedaniel
70d5de3186 Migrate to my maven + make NetworkChannel side-agnostic 2021-02-08 21:49:58 +08:00
shedaniel
afe197b516 Merge pull request #32 from Juuxel/feature/game-rule-api
Game rule API
2021-01-27 22:26:26 +08:00
Juuxel
6de010f71a Add game rule API 2021-01-27 15:14:42 +02:00
shedaniel
51c9e8b0d8 [ci skip] This is beautiful 2021-01-27 19:22:03 +08:00
shedaniel
d6c2772d8e Update architectury-plugin 2021-01-25 20:02:34 +08:00
shedaniel
9a8194b1f4 Update architectury plugin 2021-01-25 18:04:17 +08:00
shedaniel
492521dfe3 Add PlayerEvent#CHANGE_DIMENSION 2021-01-25 17:52:39 +08:00
shedaniel
5e808e52ee Add PR snapshots 2021-01-25 11:56:49 +08:00
shedaniel
0bb1d9c87e Fix AW 2021-01-21 21:22:08 +08:00
shedaniel
9c6101835d Close #18 Currently testing item / block addition, keybinds and creative tabs. 2021-01-20 20:28:15 +08:00
shedaniel
e28f43db87 Fix MenuRegistry crash, thanks @OroArmor 2021-01-13 20:39:26 +08:00
shedaniel
ce6fda2a2f Migrate to ArchitecturyTarget 2021-01-13 01:12:47 +08:00
shedaniel
26c04a60c4 Fix Chocohead/OptiFabric#147 2021-01-12 10:09:43 +08:00
shedaniel
7b3462c0b9 Update forgified-fabric-loom to 0.5.26 2021-01-11 14:39:02 +08:00
shedaniel
75ee6b0d03 Migrate to non API centralized ExpectPlatform 2021-01-11 11:15:14 +08:00
shedaniel
57298e3574 Upgrade gradle plugins 2021-01-10 17:30:17 +08:00
shedaniel
5b6f429bbe Add test mod 2021-01-09 20:17:01 +08:00
shedaniel
59d42b7d4d Update license header year to include 2021 2021-01-02 00:54:16 +08:00
shedaniel
12680fde12 Fix NPE on Fractions caching 2020-12-27 14:15:32 +08:00
shedaniel
12ee022c31 Update architect-plugin 2020-12-23 19:07:27 +08:00
shedaniel
6117b11483 Fix license, remove unused mixin 2020-12-23 16:57:32 +08:00
shedaniel
67a1db1ccb Architectury Update
- Cache fractions from -1024 to 1023
- Add BiomeModifications for platform-agnostic biome additions
- Add FluidStackHooksForge to convert architectury FluidStacks to forge FluidStacks
- Migrate to Forge Loom & Update Architect Plugin
- Mark several methods in Mod as NotNull
- Add Env as a replacement for EnvType
2020-12-21 01:03:47 +08:00
shedaniel
eaba509f2b Fix client events, bump version to 1.1, fix FluidStackHooks for fabric. 2020-11-22 19:35:39 +08:00
shedaniel
2e09f293ff Add xp to break block 2020-11-18 01:17:11 +08:00
shedaniel
83a8fb1302 Fix buildscript 2020-11-15 21:06:30 +08:00
shedaniel
6362fe40e3 Publish to CF 2020-11-15 20:32:36 +08:00
shedaniel
4ed2087c23 Update architect-plugin 2020-11-13 01:42:21 +08:00
shedaniel
28f8e8386b Update architect-plugin 2020-11-13 01:05:21 +08:00
shedaniel
213da7a20e Convert to @ExpectPlatform 2020-11-12 22:33:11 +08:00
shedaniel
44e0c60bc1 nbt types utils 2020-11-07 15:35:40 +08:00
shedaniel
601e3c5722 Fix compile 2020-11-07 00:47:08 +08:00
shedaniel
6c91c919d1 Publish to bintray 2020-11-07 00:37:41 +08:00