Commit Graph

341 Commits

Author SHA1 Message Date
Max
f4e828d4eb Add Platform#getFilePaths (#268)
Signed-off-by: Max <maxh2709@gmail.com>
(cherry picked from commit 517205efdc)
(cherry picked from commit d1d491dad2)
2022-05-28 00:34:50 +08:00
shedaniel
d3d656053d Add way for other mods to indicate that they are fake players (#202)
* Add way for other mods to indicate that they are fake players

* Implement "reasonable default" for fake players and fix inverted logic

Signed-off-by: Max <maxh2709@gmail.com>

Co-authored-by: Max <maxh2709@gmail.com>
(cherry picked from commit 42684fd87a)
(cherry picked from commit bfde8dee17)
2022-05-28 00:34:50 +08:00
Max
da469cc100 Add rudimentary support for modrinth publishing (#263)
(cherry picked from commit 4da029729c)
Signed-off-by: Max <maxh2709@gmail.com>
2022-05-22 18:42:58 +02:00
shedaniel
e5121992ca Make Architectury API publish to the same CF project
(cherry picked from commit b11b717671)
2022-05-07 22:02:12 +08:00
shedaniel
3696068b83 Synchronise EventBuses properly, hopefully fixing "Where is architectury" race (#235)
* Synchronise it properly?

* Use synchronised maps rather than local synchronisation

Signed-off-by: Max <maxh2709@gmail.com>
Co-authored-by: shedaniel <daniel@shedaniel.me>
2022-04-10 18:37:56 +08:00
Hiroku
ce10a9ef95 Fixed EntitySpawnExtension buffer being unable to be read from, Fix #208 (#220)
* Fixed EntitySpawnExtension buffer being unable to read from, #208

* Release the extensions buffer when it is no longer needed

* Cleaned the buffer fix for EntitySpawnExtension

Co-authored-by: Paul <paul.l.preston@hotmail.com>
2022-03-20 20:28:41 +08:00
shedaniel
6e314cea09 Fix GameRenderer capturing the wrong matrices 2022-02-05 00:56:36 +08:00
shedaniel
140f8d857b Support loader 0.13.0 2022-02-01 23:20:11 +08:00
Max
a23dbe8f18 BiomeModifications on Forge now uses Forge's builtin priority system (#188)
* BiomeModifications on Forge now uses Forge's builtin priority system

Signed-off-by: Max <maxh2709@gmail.com>

* Bump minor version

Signed-off-by: Max <maxh2709@gmail.com>
2022-02-01 01:35:26 +08:00
Max
80d2843601 Implement ClientLifecycleEvent on Forge (+ testmod)
Signed-off-by: Max <maxh2709@gmail.com>
2022-02-01 01:34:42 +08:00
Max
f95be560ca Fix EntityRenderRegistry testmod
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 23:57:15 +01:00
Max
3f603a70f1 Fix MixinEntitySpawnExtension reference to IEntityAdditionalSpawnData
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 23:39:17 +01:00
Max
f05b800881 Backport buildscript, license and workflow changes from 1.18
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 23:25:45 +01:00
shedaniel
55e997e80c (Backport) Entity Model Layer Reg, and move to new package (#159)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-31 23:18:29 +01:00
shedaniel
7771981ae6 (Backport) Introduce EntitySpawnExtension (#160)
* Introduce EntitySpawnExtension

* Add to mixins

* Update common/src/main/java/dev/architectury/extensions/network/EntitySpawnExtension.java

* Update common/src/main/java/dev/architectury/networking/NetworkManager.java

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-12-31 23:18:28 +01:00
Max
4b468a2b70 Backport of #154 and #172 to 1.17
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:41:34 +01:00
Mitchell Skaggs
2169738b58 Fix LVTs (#167)
* Fix ServerGamePacketListenerImpl

Closes #165, closes #166

* Fix MixinGameRenderer by giving it an explicit ordering

The Fabric API mixin uses the default priority of 1000, so we use 1100 priority to apply before it. This results in this bytecode structure, where "F" is the Fabric API injections, "A" is the Architectury API injections, and "M" is the Minecraft function being injected pre/post: `FAMAF`.

* Fix MixinPhantomSpawner captures

* Fix MixinPatrolSpawner captures

* Fix MixinChunkSerializer captures
2021-12-27 16:42:36 +08:00
Max
7604846cd3 Fix MixinFallingBlockEntity on 1.17, closes #164
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-27 00:48:29 +01:00
Max
5284b7cdd7 Add fabricloader and Fabric API to fmj depends on 1.17 (#151)
Signed-off-by: Max <maxh2709@gmail.com>
2021-12-26 23:34:18 +01:00
shedaniel
09835da2de Add LifecycleEvent.SETUP for manipulating things after normal init (#148)
* 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>
2021-12-26 20:15:51 +01:00
shedaniel
499a95f7e6 Move EnvExecutor executions to another class 2021-12-23 17:50:07 +08:00
shedaniel
55375ae875 Try to guard against NoClassDefFoundError for #158 2021-12-23 17:20:01 +08:00
shedaniel
ae4ebbb736 Add ClientReloadShadersEvent (#149) 2021-12-20 03:39:17 +01:00
Ivan Molodetskikh
83a4ca436e ScreenInputDelegate: Call MOUSE_DRAGGED_POST correctly
It was erroneously calling the PRE event twice.
2021-12-18 17:04:30 +08:00
shedaniel
911175d925 Fix #150 2021-12-12 22:01:21 +08:00
shedaniel
3c2795c6ca Remove hacks around RegistryEntry (#144) 2021-12-11 19:05:13 +08:00
shedaniel
3d8fbda68b 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-08 22:13:12 +08:00
shedaniel
7d721c8521 Add Registries#forRegistry and delay getting forge mod event bus (#82) 2021-11-27 00:18:55 +08:00
shedaniel
db6ae9934f Don't release non split packets, bump minor version because we didn't 2021-10-23 19:12:41 +08:00
shedaniel
a6a361e5e1 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:27:28 +08:00
shedaniel
f636b1ad96 Switch to gradle components 2021-10-13 22:08:53 +08:00
Juuxel
404db2782a Update deps in fabric.mod.json (#141) 2021-10-11 13:59:02 +08:00
davidalb97
ad35504c21 Fixed PlayerAttackInvoker mixing loading crash on server side (#137)
Signed-off-by: apple <davidalb97@hotmail.com>
2021-10-01 05:22:09 +08:00
shedaniel
c3ffa8d976 Update to Loom 0.10.0 and add Mixins 2021-09-22 23:03:07 +08:00
shedaniel
88dbf04c9b Implement item properties (#132) 2021-08-30 02:56:33 +08:00
shedaniel
c8667222a3 Add license headers 2021-08-24 03:34:50 +08:00
Max
fd630fac0d Merge pull request #128 from Leo40Git/feature/stripping
Add tool interaction hooks
2021-08-16 16:43:20 +02:00
Max
7087b65647 Bump minor version 2021-08-16 16:38:38 +02:00
Leo40Git
aba773f07a These aren't actually recipes, so... 2021-08-13 12:00:20 +03:00
Leo40Git
0c1aaa98b2 Javadoc I definitely went ham on 2021-08-12 22:45:31 +03:00
Leo40Git
64be307c1b Rename parameters to be less cryptic 2021-08-12 22:35:11 +03:00
Leo40Git
c8f7904481 Validate stripping recipe before adding 2021-08-11 15:51:32 +03:00
Leo40Git
32a44239ea Add tool interaction recipe hooks 2021-08-11 12:14:26 +03:00
shedaniel
4ef7f45ae7 Switch to MethodHandlers to avoid wrapping exceptions with InvocationTargetException due to reflection 2021-08-06 17:09:05 +08:00
shedaniel
790edf8264 Fix ChunkDataEvent.Load 2021-08-02 19:25:42 +08:00
shedaniel
c7678f3f2c Bump to 2.3 2021-08-02 03:06:37 +08:00
shedaniel
d9363094ee Merge remote-tracking branch 'architectury/feature/forge_1.17' into 1.17 2021-08-02 03:06:24 +08:00
shedaniel
74069d1bb0 Should be fine now, right? 2021-08-02 03:05:41 +08:00
shedaniel
bf34031711 WIP Forge port 2021-07-29 23:03:06 +08:00
LatvianModder
5b7cb36414 Added SimpleNetworkManager (#120)
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:13:07 +08:00