Commit graph

182 commits

Author SHA1 Message Date
modmuss50
413ddf6456 21w14a - Mappings update 2021-04-07 18:46:09 +01:00
modmuss50
23b3c92ea9 21w13a 2021-03-31 20:52:51 +01:00
modmuss50
03bff30f22 21w11a 2021-03-17 19:14:28 +00:00
modmuss50
92519afafe Version bump 2021-01-19 19:38:22 +00:00
i509VCB
f8cf2bb436 Add custom value denoting module lifecycles. (#1253)
* Add custom value denoting module lifecycles.

* Make the module validation work.

My hand has been forced - we must use buildSrc since JsonSlurper is not available in main buildscript.

* Apply task to each project and dont cross projects

* A horrible hack

* Wait what

* It works now.

* Not needed

* Drop unneeded maven repo, cache map lookup

(cherry picked from commit daa38b3d82)
2021-01-19 18:54:23 +00:00
modmuss50
836e66a3f5 Fix build.
Opps ;)
2020-12-16 19:13:16 +00:00
modmuss50
1a369faf20 20w51a 2020-12-16 19:06:02 +00:00
modmuss50
d591fc0a7e Bump version 2020-12-12 16:49:45 +00:00
modmuss50
bb826c2c5b Fix registry sync being applied when its not supposed to be.
Fixes #1217
Fixes #1216
2020-12-12 16:48:39 +00:00
modmuss50
bee3a886d0 Bump version 2020-12-10 18:34:17 +00:00
i509VCB
fd11873744 Fabric Networking API V1 (#1081)
* Networking api v1

Some final docs?

Licenses and testmod

Fix a bunch o imports and make things work for v1 (v0 is bork)

Make the testmod pass checkstyle and work

Docs for v1

* Deprecate v0 and implement using v1

* Drop files down one package due to package check error

* Fix issue with channel registration, add another testmod

* jaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaavadoc

* Make javadoc use `code`, move impl interface to package access

* this things

* Rename a few internal methods

* Mark all client side stuff client only, move client mixins

* Add null checks around the place, clarify some javadoc and method names

* Make FutureListeners uninstantiable

* Some internal nullable annotations

* An impl class I forgot to rename

* Some comments and clarify some client login handler javadoc

* Add a missing FunctionalInterface annotation

* Split play and login, move client stuff to right package

* No interface left behind

* Inline channel registries in api

* Login and play subpackages not needed

* Add helper method to create play custom packets

* hasGlobalChannel -> hasGlobalReceiver

* Just rename the collection method for now

* Inline PlayPacketSender into static methods

* Start on testmod idea for verifying dynamic registration

* Add client login events

* You don't say hello when talking to yourself.

Also more testmod stuff

* Make event names present tense

* Some javadoc and impl interface rename

* Change the test keybinding

* Begin working on dynamic reg

* Dynamic reg works, just need a lot of cleanup and reimpling global

* A few renames, readd global methods

* Try to reduce the amount of duplicate registration logic

* Reimplement dynamic accessors

* More impl

* Start reimplementing global receivers. Still very hacky solution.

* Reimplement some server global reciever stuff

* Add login init event for server login.

* Implement client login query start event

* Move event invocations into addon, don't dual register global recievers

* Finally reimplement global recievers for all networking phases

* A revelation: Send packets properly

This also finds the issue with screen getting the proper S2C channels, current on TODO list.

* Disconnect event does not need a packet sender

* Clarify, add methods to get channels net handler can recieve on client

* Unregister actually works now

* Bunch of null checks, add simpler login delay test for vanilla clients

* Add some debug logging entries, fix unregister on client's session reg

* Play channel event javadoc and rename login query handlers

* More channel -> channelName

* thisening

* Introduce the basics infrastructure for tracking global receivers

* Add more substantial javadoc to login connection events

* Javadoc, reimplement unreg methods on v0, 1 impl fix

* Implement tracking for global recievers

* Dont forget to start tracked sessions in 3/4 cases

* Global receiver docs and move methods in classes

* Complete null checks

* big boi javadoc part 1

* Finish the main javadoc, usage javadoc is left

* Set so has method is not needed

* Rename receiveable and sendable methods

* Add the two missing private ctors

* buildscript update to upstream

* Split out player finding stuff to networking player tracking API v1

Signed-off-by: liach <liach@users.noreply.github.com>

Forward v0 PlayerStream to new module, add entity track events

Rename module to player tracking

Well javadoc can make sense

Decide on tracking for the name

Update fabric-player-tracking-api-v1/src/main/java/net/fabricmc/fabric/api/networking/player/tracking/v1/package-info.java

Co-authored-by: Erlend Åmdal <erlend@aamdal.com>
Remove exceptions from javadoc that are not thrown

javadoc fix again

Handle a case where the player manager happens to be null

rename player tracking to player lookup

Yeet

* Cherrypick #1092

* Remove some redundant client networking methods, rename `(un)register` to `(un)registerReceiver`

* Simplify access to dynamic reg on client

* Param shifting, let users get sender.

* Warning about time and distance units

* Make sure these are client only

* Fix control flow in ClientPlayNetworking#send

* Correct example code javadoc

* javadoc correction in server login

* Put login delay tests behind system property

Also remove unnecessary junk added by old module that was merged together.

* Fix ordering so channel registrations during `PHASE`_INIT work

* Fix prod bug and an oversight

* Fix login when connecting to dedicated server

* Update registry sync to v0 to prevent issue with reg sync hanging client

* this is done
2020-12-09 18:49:22 +00:00
modmuss50
18e7e5e181 Bump version 2020-11-24 19:54:57 +00:00
modmuss50
1fec9da3c8 Assign a new ID to client only registry entries when syncing. (#1179)
* Assign a new ID to client only registry entries when syncing.

Fixes #1165

* Cleanup + review comments
2020-11-24 19:52:26 +00:00
modmuss50
d7dacf3db0 Bump version 2020-11-21 18:53:21 +00:00
modmuss50
16a3a4a49a Fix MC-202036 - Shifting biome IDs (#1168)
* First pass on PersistentDynamicRegistryHandler, not tested

* Extra debugging + fix it not working

* Fix build

* Minor tweaks

* checkstyle ;)

* Improve comments + fix issues with tag reading/writing

* Simplify mixin
2020-11-21 18:50:12 +00:00
Thalia Nero
9f7a7423f3 Add module dependencies to maven POM (#1104) 2020-11-15 19:46:01 +00:00
modmuss50
a4467d2a9c Bump version 2020-10-27 18:36:48 +00:00
i509VCB
eacb8ba396
Update yarn mappings (#1127) 2020-10-22 18:54:44 +01:00
modmuss50
9f0fb4b8a2 Bump version 2020-10-11 21:18:28 +01:00
CheaterCodes
888073d094 renamed event method 2020-10-01 23:37:40 +02:00
CheaterCodes
811b763fc3 removed redundant supressions 2020-10-01 22:58:14 +02:00
CheaterCodes
bf575bf013
Merge branch '1.16' into dynregman 2020-10-01 22:54:51 +02:00
modmuss50
3c53fe33fe Version bump 2020-09-29 18:55:16 +01:00
shartte
ff71903321
Cleaned up use of Generics in registry-sync-v0 and used Registry#getKey where possible instead of reverse-lookup of the registry key. (#1082) 2020-09-29 18:48:23 +01:00
modmuss50
f8ac1db2b1 Version bump 2020-09-27 12:38:48 +01:00
Deximus-Maximus
5f10696617
Add @Nullable and friends (#1007)
* Boost to Loom 0.5
Add null related annotations

* Rearrange nullable to be overline

* Fix anno sorting for picky

* Add imports

* Address feedback

* Fix import
2020-09-27 12:10:02 +01:00
modmuss50
c1aa8ed8d7 Version Bump 2020-09-18 18:48:09 +01:00
shartte
7490af87a1
Make BuiltInRegistries safe for Worldgen Registration during Mod Initialization (#1052)
* Adds a synchronisation for entries in BuiltInRegistries to the built-in DynamicRegistryManager, to a void class-loading DynamicRegistryManager during Mod initialization from messing up the Worldgen registrations of subsequently loaded mods.

* Changed to use updated Yarn mappings.
2020-09-18 18:10:47 +01:00
CheaterCodes
002bec9c05 updated mixin for new mappings 2020-09-13 13:17:51 +02:00
CheaterCodes
ea60ad8ae6 Changed the event to a more generic one 2020-09-13 13:04:59 +02:00
CheaterCodes
1d8aa64520 Fixed some generics 2020-09-13 13:04:16 +02:00
CheaterCodes
7953e09bd8 bumbed loader version, finalized DynamicRegistryEvents 2020-09-13 13:03:53 +02:00
CheaterCodes
a46b0be60a Added DynamicRegistryEntryAddedCallback 2020-09-13 13:03:53 +02:00
CheaterCodes
a0c9b80ef4 Added some javadoc and the license header 2020-09-13 13:02:21 +02:00
CheaterCodes
5610e94af4 Changed the event to a more generic one 2020-09-13 13:02:21 +02:00
CheaterCodes
1e30c89370 Fixed some generics 2020-09-13 13:02:21 +02:00
CheaterCodes
e5def8e7eb bumbed loader version, finalized DynamicRegistryEvents 2020-09-13 13:02:21 +02:00
CheaterCodes
e9c7de9661 Added DynamicRegistryEntryAddedCallback 2020-09-13 13:02:21 +02:00
modmuss50
fcdfdfa1c7 Fix server crash, closes #1058 2020-09-03 23:44:31 +01:00
modmuss50
fb0d9b0e7d Update mappings 2020-09-03 20:39:05 +01:00
modmuss50
e5d3217f0d Mappings update 2020-08-11 17:42:40 +01:00
modmuss50
91555cd1f0 1.16.2-pre2 - no biomes for now 2020-08-05 20:00:37 +01:00
modmuss50
847665c2f2 Fix crash when remapping registries. Closes #967 2020-07-29 20:16:13 +01:00
modmuss50
bf0e62bd42 1.16.2-pre1 2020-07-29 16:52:10 +01:00
modmuss50
5553fa5856 20w29a 2020-07-15 17:20:11 +01:00
modmuss50
35e08e3387 20w28a - no biomes or dimensions 2020-07-08 19:31:01 +01:00
modmuss50
7dba2d6c01 1.16-pre4 - just a mapping change. 2020-06-11 18:30:44 +01:00
modmuss50
059ea866ec update mappings 2020-06-09 22:29:07 +01:00
modmuss50
8779c4a30c Change log level or orphaned registry output 2020-06-05 15:33:41 +01:00
modmuss50
dd263cca8b
Fix some known issues with the registry sync module. (#525)
* Try to detect if a registry is modded, if its not it will left alone and no syncing or saving will take place.

* Some more work on moddable registries

* Checkstyle

* Fix licences

* Cleanup registry attributes

* Rework again

* Some small tweaks

* Yet another refactor

* Some minor style fixes

* Finish checking registries

* Start on a test mod, and apply some fixes.

* Checkstyle fixes

* Tweak the logic behind previously modded registries

* Use EnumSet

* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinRegistry.java

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Fix generics, add javadoc, add tests

* More changes

* Checkstyle fixes

* Minor fixes

* Remove hash stuff

* 20w21a - massive changes

* fix build

* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>

* Feedback and update mappings

* No longer apply mappings to vanilla registries, no longer save empty mapping data.

* Use Identifier in FabricRegistryBuilder over RegistryKey
Improve empty registry tag handling

* Reorder toTag empty checks

* Minor fixes

* Make FabricRegistryBuilder final

* Update registry attributes

* Fix compile issue

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
Co-authored-by: Player <player@player.to>
2020-06-04 21:33:56 +01:00
modmuss50
346247d7d1 Checkstyle 2020-06-04 21:24:25 +01:00
modmuss50
0d474ec430 1.16-pre1 2020-06-04 21:20:20 +01:00
modmuss50
da175ad6ad 20w22a 2020-05-29 15:56:10 +01:00
modmuss50
4a08d6b285 20w21a initial port 2020-05-20 19:39:37 +01:00
modmuss50
d1e1b46ce9 Remove call to initShapeCache when registering blocks.
At some point in the 1.16 update cycle this was moved to be called after tags are (re)loaded and not when blocks are being registered.
2020-05-07 13:52:28 +01:00
modmuss50
686e6e57ad 20w18a 2020-04-29 17:49:19 +01:00
modmuss50
2fd224ca63 20w17a 2020-04-22 17:59:17 +01:00
modmuss50
eb276f9cfc 20w16a 2020-04-15 16:42:48 +01:00
modmuss50
372d827d5a 20w13a 2020-03-25 18:20:06 +00:00
modmuss50
d249f7b6d6 20w12a 2020-03-18 20:05:01 +00:00
modmuss50
9421522d5a 20w06a 2020-02-05 18:05:59 +00:00
modmuss50
f3d8141bae 1.15-pre1 2019-11-21 21:04:17 +00:00
modmuss50
12515ed9ee 19w45a 2019-11-07 20:35:26 +00:00
Player
b7f9825dbb Add checkstyle verification for package names, fix non-API packages. 2019-11-03 20:14:45 +01:00
Player
dfdb52d6e5 Add checkstyle, format existing code accordingly. 2019-10-27 15:40:26 +01:00
grondag
d2ac651a7a
19w38b API Fixes (#370)
* Fix compilation errors (untested)

* Random fixes

* Various modded rendering fixes

* Restore contract of RenderAttachedBlockView

* Bump versions as needed

* Add API for BlockRenderLayer

* Minor format / name cleanup

Will do a more comprehensive pass as part of separate refactor PR

* Bump versions not handled earlier

* Bump loader/mc bounds for dependent modules

* Update fabric-blockrenderlayer-v1/src/main/java/net/fabricmc/fabric/impl/blockrenderlayer/v1/BlockRenderLayerMapImpl.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update fabric-blockrenderlayer-v1/src/main/java/net/fabricmc/fabric/impl/blockrenderlayer/v1/BlockRenderLayerMapImpl.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Minor clean ups

* Improve docs, minor format corrections.

* Update MC dependency
2019-09-20 16:50:49 -07:00
modmuss50
7533b848b5 19w38b - start the port, does not compile just yet. 2019-09-18 18:16:25 +01:00
Prospector
5ed88c193a Add more metadata to the modules (#353)
* Add fabric-api-base as a dep to fabric-networking-v0
2019-09-09 01:48:43 +02:00
grondag
9b03381f03
Merge pull request #284 from svipthedrunk/javadoc
Javadoc fixes
2019-07-28 06:04:11 -07:00
modmuss50
ea100f613b 1.14.4-pre4 2019-07-10 14:42:04 +01:00
svipthedrunk
b494ebebbb Fixed most of the javadoc comments and removed unused imports
Mostly replaced instances of > with its correct html representation "&gt;"
Changed or removed some bad @link entries, mostly stuff due to overseen code changes
Could not find the referenced class VertexEditor at all, removed these references out of the docs

Some errors still exists due to referenced objects not in the classpath at the time the javadoc is build
Proposal do some gradle magic
2019-06-27 18:18:10 +02:00
Adrian Siekierka
f0d568005e 1.14.3-pre2 2019-06-13 10:16:42 +02:00
Adrian Siekierka
10d8dc0969 Merge branch 'master' into snapshot/1.14.3 2019-06-13 10:03:02 +02:00
asie
baba33ba30 fabric-registry-sync: lots of fixes and debug functionality 2019-06-09 14:27:39 +02:00
Adrian Siekierka
bdffbb2cdb 1.14.3-pre1 2019-06-03 19:02:44 +02:00
asie
4d26f9bab4 [fabric-registry-sync] fix StateIdTracker 2019-05-28 19:08:33 +02:00
Adrian Siekierka
99245497ed
Registry event API + loot table fix (#194) 2019-05-28 18:28:00 +02:00
Adrian Siekierka
25fd0c5267 compatibility improvements for Bukkit environments 2019-05-26 14:31:30 +02:00
asie
59147463cc add proper depends lists to mods 2019-05-17 23:08:53 +02:00
Adrian Siekierka
168284d8b5 [#183] [fabric-registry-sync] major cleanup/DRY refactors 2019-05-17 16:40:06 +02:00
Adrian Siekierka
945f265fc3 update to 1.14.2pre2 2019-05-17 16:20:37 +02:00
Adrian Siekierka
f16189181b final module name refactor prior to release, hopefully 2019-05-11 23:48:33 +02:00