Commit Graph

222 Commits

Author SHA1 Message Date
shedaniel
cfef5f28b7 Allow being more flexible in registering
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-12 15:05:04 +08:00
shedaniel
2eef26f632 Add FuelRegistry (#81)
* Add FuelRegistry

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

* Fix compilation

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

* Remove redundant generic

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

* Change to MinecraftForge.EVENT_BUS

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

* A few docs, and switch to returning 0 for non-fuels

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

* Bump to 1.13
2021-05-12 13:43:03 +08:00
shedaniel
9f07f65196 Remove @NotNull spam
Things should be non null by default, and we mark @Nullable otherwise

Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-11 01:08:08 +08:00
shedaniel
8de2c936b5 Fixes CME with Platform#getMod
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-05-08 19:21:10 +08: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
5accb65ee8 Add interruptTrue/Default/False as util methods 2021-04-17 22:05:43 +08:00
shedaniel
f06776d884 Bump to 1.11 2021-04-15 23:27:27 +08:00
Max
ca2a528160 Some more (mostly Entity-based) Events (#75)
* Add FarmlandTrample event

* FarmlandTrample debug event

* Add FILL_BUCKET event and testmod

* Add ENTER_CHUNK event and testmod

* Add CHECK_SPAWN on Forge

* CHECK_SPAWN on Fabric part 1 aka: The Concernening

* CHECK_SPAWN on Fabric part 2: I kinda don't hate this as much

* CHECK_SPAWN on Fabric part 3: Patrols

* CHECK_SPAWN on Fabric part 4: catJAM

* CHECK_SPAWN on Fabric part 5: Phantoms

* Fix CHECK_SPAWN for patrols

* Add mod metadata (#73)

* new event system

* Revert patrol spawner behaviour

* Implement CheckSpawn behaviour for spawners and add test (forgot about that)

* Revert "Revert patrol spawner behaviour"

This reverts commit 1da3fb73

* Change MixinPhantomSpawner to SOFT

* Edit forge mods.toml
We support 1.16.2+ on forge

Co-authored-by: shedaniel <daniel@shedaniel.me>
2021-04-15 23:26:48 +08:00
shedaniel
ac94c33e07 Re-license header 2021-04-13 19:40:44 +08:00
shedaniel
6041f836f2 Merge remote-tracking branch 'architectury/feature/armor_tick' into 1.16 2021-04-13 19:39:56 +08:00
shedaniel
ec06bd3b96 Add docs 2021-04-10 21:28:48 +08:00
shedaniel
35145b9acb Add getCustomEquipmentSlot 2021-04-10 20:33:26 +08:00
shedaniel
27addc91d9 Close #39 2021-04-10 20:13:19 +08:00
shedaniel
2af34feb2a Fix invalid events 2021-03-30 01:19:43 +08:00
Max
2846a9616a Merge remote-tracking branch 'architectury/1.16' into 1.16 2021-03-22 22:28:59 +01:00
Max
9fb19f9605 Bump forge event priority to HIGH
My reasoning for this lies in the quirk that Forge by default cancels all following event listeners when one of them fails with an Exception. Because we are an API that mods need to be able to rely on, and this may cause cascading issues with mods that depend on us down the line (see https://github.com/KubeJS-Mods/KubeJS/issues/101), I think we should act on HIGH priority by default to reduce the risk of this happening
2021-03-22 22:28:37 +01:00
Max
28d986a3cc Add EntityHooks.fromCollision to retrieve an entity from block collision (#64) 2021-03-21 20:20:25 +01:00
shedaniel
f904c1de2e Add @SubscribeEvent to ColorHandlersImpl 2021-03-20 15:42:00 +08:00
shedaniel
aee0af27f4 Remove addListener from ColorHandlersImpl 2021-03-20 15:41:29 +08:00
shedaniel
3dcad1e8a1 Fix Forge Screen Events to be consistent with the fabric implementation: InteractionResult.SUCCESS should also indicate that the event should be cancelled. 2021-03-20 15:10:43 +08:00
Max
0e1347aae7 Merge branch 'feature/asmify' into 1.16 2021-03-18 17:54:51 +01:00
Max
e1cff1567b More annotation event migration 2021-03-18 15:49:03 +01:00
Max
c8dd9061db Migrate Forge ReloadListeners events to annotations 2021-03-18 15:43:56 +01:00
Max
dd8c78c448 Fix CLIENT_WORLD_LOAD on Forge 2021-03-18 15:41:22 +01:00
Max
4168644036 Merge pull request #62 from architectury/feature/fix_35
Rewrite the GuiEvent.SET_SCREEN mixin to fix #35
2021-03-16 16:51:37 +01:00
Max
47da69c510 Bump to 1.9
This is to indicate possibly changed mod behaviour (e.g. with KubeJS UI)
2021-03-16 16:51:01 +01:00
shedaniel
389034e1ff Change at 2021-03-11 21:11:43 +08:00
shedaniel
833d6014ea Rewrite the GuiEvent.SET_SCREEN mixin to fix #35 2021-03-11 21:09:22 +08:00
shedaniel
db1237448a Update plugins 2021-03-08 01:16:37 +08:00
shedaniel
6cbafd06a7 Add lightning strikes to the debug mod 2021-03-07 21:10:48 +08:00
shedaniel
0dbf72667d Update plugin 2021-03-01 23:46:34 +08:00
shedaniel
fc41c38ffa Merge remote-tracking branch 'architectury/1.16' into 1.16 2021-03-01 21:30:37 +08:00
shedaniel
bf9efc708f Update plugins 2021-03-01 21:30:24 +08:00
shedaniel
d9b43e71e6 Add EntityRenderers (#52)
Close #45
2021-02-27 17:48:51 +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
927bd08f8c Revert "Remove locals requirements from BlockLandingInvoker"
This reverts commit 0eb7bd5b
2021-02-26 03:47:23 +08:00
shedaniel
60cc189d60 Remove local testing build of transformer 2021-02-26 02:18:05 +08:00
shedaniel
0eb7bd5b1e Remove locals requirements from BlockLandingInvoker 2021-02-26 02:16:55 +08:00
shedaniel
c8aeff0823 Update architectury-plugin to 3.0.88 2021-02-26 02:16:53 +08:00
shedaniel
5dc01b0a19 Implement onDataPacket (#48) 2021-02-26 00:36:06 +08:00
shedaniel
b93cb04b6f Add null checks to networking for better errors. 2021-02-25 15:00:34 +08:00
shedaniel
4288ba88f5 Remove jcenter from settings.gradle 2021-02-23 23:17:07 +08:00
shedaniel
186d9bc517 Bump to 1.8 2021-02-23 23:11:00 +08:00
shedaniel
f99ac935ed Merge remote-tracking branch 'architectury/feature/optional_tags' into 1.16 2021-02-23 23:09:45 +08:00
shedaniel
c0c496007e Fix block entity without position 2021-02-23 23:09:16 +08:00
shedaniel
189f1e211c Implement Tag#equals and Tag#hashCode on forge because forge is nice 2021-02-23 01:03:06 +08:00
shedaniel
a7a98aa19f Add license 2021-02-23 00:58:04 +08:00
shedaniel
4f333f7ec7 Add test mod and fix game rules on forge 2021-02-23 00:56:50 +08:00
shedaniel
7e743dcb64 Add licenses and implement optional tags, requires some testing. 2021-02-23 00:16:26 +08:00