mc-fabric-api/settings.gradle

73 lines
1.9 KiB
Groovy
Raw Normal View History

pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
2024-08-11 14:51:54 +01:00
gradlePluginPortal()
}
}
2019-04-24 19:15:08 +02:00
rootProject.name = "fabric-api"
include 'fabric-api-bom'
include 'fabric-api-catalog'
def focus = new File('focus.txt')
if (focus.exists()) {
focus.eachLine {
include it
}
return // Skip the rest of the includes
}
include 'fabric-api-base'
Fabric API Lookup (#1234) # Fabric API Lookup API v1 ## Introduction This module allows Api instances to be associated with game objects without specifying how the association is implemented. This is useful when the same Api could be implemented more than once or implemented in different ways. Many thanks to @Grondag for providing the original concept (#1072). Thanks also go to @i509VCB, @Pyrofab, @sfPlayer1 and the others who were involved with the design of this module. This is the foundation upon which can be built for example a fluid transfer api (#1166). Closes #1199. ## Flexible Api Querying ## Block Api Usage example ## Building blocks This PR was changed a lot, please have a look at the README, the package info, and the javadoc for `BlockApiLookup` and `ApiLookupMap` for up-to-date documentation. ## More usage examples FastTransferLib (https://github.com/Technici4n/FastTransferLib) is an experiment to build an item, fluid and energy transfer api on top of this module. (Which was until recently called `fabric-provider-api-v1`.) ## Missing things? ~~I could add an overload of `BlockApiLookup#find` with nullable `BlockState` and `BlockEntity` parameters, so that the caller can directly provide them if they are available for some reason.~~ Added in later commits. There is no module to retrieve apis from items or entities yet because there were unsolved issues with those. The community can use the provided building blocks to experiment with their own implementations of `ItemStackApiLookup` and `EntityApiLookup` until the way forward becomes clear, but let's please not delay the `BlockApiLookup` because of that. Co-authored-by: i509VCB <git@i509.me> Co-authored-by: PepperBell <44146161+PepperCode1@users.noreply.github.com> (cherry picked from commit dc716ea1674642c756cb030eed411f0f4919e0e8)
2021-03-08 21:32:36 +01:00
include 'fabric-api-lookup-api-v1'
include 'fabric-biome-api-v1'
include 'fabric-block-api-v1'
include 'fabric-block-getter-api-v2'
include 'fabric-client-gametest-api-v1'
include 'fabric-command-api-v2'
include 'fabric-content-registries-v0'
2024-04-16 13:01:57 -04:00
include 'fabric-convention-tags-v2'
include 'fabric-crash-report-info-v1'
Rename APIs to match Mojang's naming (#5060) * Change include in settings.gradle from 'fabric-screen-handler-api-v1' to 'fabric-menu-api-v1' * Rename fabric-screen-handler-api-v1 directory to fabric-menu-api-v1 * Rename fabric-screen-handler-api-v1-version to fabric-menu-api-v1-version in gradle.properties (not sure about this one) * Rename java packages from screenhandler to menu * Rename some resource files and references * Rename id, name and description in fabric.mod.json * Rename missing directories in the test mod * Rename id, name in the test mod fabric.mod.json, and fix the entrypoints and "depends" section * Rename and change the rest * networking-api-v1 renames (#5058) * api renames, by apple502j (#5057) * reg sync * resource loader * api lookup api * biome api * Creative Mode Tab API renames (#5059) * creative mode tab api Checkstyle rename buttons * remove provides * small change * rename: fabric-sound-api-v1 * item api * Update CustomDamageTest.java * Update settings in testmod * api renames in serialization api v1 * block api * fix renames * remove TODOs * tag api * rename package and add todo * lifecycle-events-v1 renames * rename syncId to containerId * Key Mapping API renames * Fix mixin config * Fix build * Fix build again... * renames in command-api v2 * chore: fix some issues * Update EquipmentSlotProvider.java * chore: fixup javadoc * chore: update some tests’ params * more renames * game test * screen api * fabric-crash-report-info-v1 - Does not seem to need anything else renamed. * fabric-message-api-v1 - commit.1 - ClientReceiveMessageEvents -> ClientLogChatMessageEvents * fabric-message-api-v1 - commit.2 - Patch files previously dependent on ClientReceiveMessageEvents. * rename rendering-fluids and transfer-api * run spotlessApply * where this line comes from? * fabric-message-api-v1 - commit.3 ClientSendMessageEvents -> ClientHandleChatInputEvents * Fix build * fabric-message-api-v1 - commit.4 - Patched ChatListenerMixin. - Done with client renaming. * fabric-message-api-v1 - commit.5 - done. - ServerMessageEvents -> ServerChatEvents - ServerMessageDecoratorEvents -> ServerChatDecoratorEvents - Patched Mixins. - Patched testmod. - Finalized renaming of fabric-message-api-v1. * Rename game rule api * fix import order issue * client-gametest-api-v1 renames * Entity Events API renames * Events Interaction API renames * Rename module to Creative Tab API * content-registries-v0 renames * renames to loot * Mapped a bit (Should've committed more frequently, oops) * A bit more * refactor!(rendering-v1): update API names * fix: checkstyle issues * refactor(rendering-v1)!: `AtlasSourceRegistry` -> `SpriteSourceRegistry` * refactor(object-builder-api-v1)!: api renames * fix: checkstyle * refactor(rendering-v1)!: `ColorProviderRegistry` -> `BlockColorRegistry` * refactor(particles-v1)!: api renames * refactor(particles-v1)!: `ExtendedBlockStateParticleEffectSyncClient` -> `ExtendedBlockParticleOptionSyncClient` * fix: checkstyle lol * Mapped some packet-related things * Even more packets! * client -> minecraft * All worlds? (I hope Intellij didn't mess up at hierarchy renaming) * Map the last few things Also ran the necessary gradle tasks * refactor(data-attachment-api-v1): api renames * refactor(data-attachment-api-v1): s2c -> clientbound, c2s -> serverbound (the superior names) * refactor(data-attachment-api-v1): packetCodec -> streamCodec * fix: damn checkstyle * Update fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/ChunkSectionLayerMap.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * refactor(rendering-v1): `BlockColorProviderRegistry` -> `ColorProviderRegistry` * refactor(rendering-v1): `AtlasSource` -> `SpriteSource` * refactor(rendering-v1): update names in `LevelRenderEventsTests` * Temporary change * S2C -> ClientBound * Done with ModelProviderMixin (except for writer, which is a bit more complicated) * Done with FabricAdvancementProvider, (except for writer, which is a bit more complicated) * Rename to cachedOutput Saw cache getting used though, so I'll change this back to cache, oopsy * Some more cache things * TestModClient things * Fixed checkstyle errors? * Improve javadoc readability * SoundTypeBuilder done? * Javadoc misc and registry -> holder * Misc * FabricCodecDataProvider renames * FabricDynamicRegistryProvider - 1 (not done) Maybe did something wrong. This is a quite convoluted commit. * FabricDynamicRegistryProvider - 2 (not done) * entries -> ressources Is this good? * Rename ClientBound -> Clientbound * RegistryLookup * registryLookup * More of the same * refactor(renderer-api-v1)!: api renames * refactor(renderer-api-v1): `TextureAtlasMixinAtlas` -> `TextureAtlasMixin` * refactor(renderer-api-v1): `blockAndTintGetter` -> `level` * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/model/ModelStateHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/FabricBlockRenderDispatcher.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/RenderLayerHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/RenderLayerHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/mixin/renderer/client/block/render/BlockFeatureRendererMixin.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * refactor(renderer-api-v1)!: `FabricBlockStateModel#particleSprite` -> `#particleIcon` * refactor(renderer-api-v1)!: `ExtendedBlockStateModelSubmit` -> `ExtendedBlockModelSubmit` * fix(renderer-api-v1): `#particleSprite` -> `#particleIcon` * refactor(renderer-api-v1)!: `FabricBlockModelShaper#getModelParticleSprite` -> `#getModelParticleIcon` * refactor(renderer-api-v1)!: `FabricBlockModelShaper#getModelParticleIcon` -> `#getParticleIcon` * refactor(renderer-api-v1)!: missed api renames * refactor(renderer-indigo): api renames * refactor(renderer-indigo): missed renames * Mapped a bit (Should've committed more frequently, oops) * Done with ModelProviderMixin (except for writer, which is a bit more complicated) * Done with FabricAdvancementProvider, (except for writer, which is a bit more complicated) * Rename to cachedOutput Saw cache getting used though, so I'll change this back to cache, oopsy * Some more cache things * TestModClient things * Fixed checkstyle errors? * Improve javadoc readability * SoundTypeBuilder done? * Javadoc misc and registry -> holder * Misc * FabricCodecDataProvider renames * FabricDynamicRegistryProvider - 1 (not done) Maybe did something wrong. This is a quite convoluted commit. * FabricDynamicRegistryProvider - 2 (not done) * entries -> ressources Is this good? * RegistryLookup * registryLookup * More of the same * Missed one * Params * Another mixin rename Missed a comment Revert This time? Rename? Why doesn't rename the interface that's getting injected work? Revert "Rename?" This reverts commit 1a1b9814a92e9d3780fe1f274ad78effa9bcfa12. * Revert "Another mixin rename" This reverts commit 89867543715ad91a9bf3d88d66d665523d8565ec. * I keep forgetting this one * Data -> Pack * Data -> Pack 2? * Generators with an s, also block, not blockState * Missed one * I think I was a bit too bold with that one * registry entry -> holder in javadoc This one is debatable? * Data -> Pack 3 * Interface injection please work? * BlockLootTableGenerator -> BlockLootSubProvider * Revert "Interface injection please work?" This reverts commit 34febbcd0c471fcf0931fa7726fd2a3d03053dd2. * Data -> Pack 4 * Undo an oopsy * These parameter names should go unchanged Went through the git diff and undid some silliness manually * Undid even more unnecessary changes * I think I went to overboard with my undos, same bug as before * Some more undos * More undos * Undos, also, accidentally based this branch on the wrong branch * Undos * I could at least change the javadoc.. * yep, undid this one too * refactor(model-loading-api-v1)!: api renames * Now only one thing is left * oops, forgot mcdev * Fix * World -> Level * tickCounter -> deltaTracker * drawContext -> graphics * Go through vibecoded script output * Interface injections and spotless * Text -> component * Fix mixin config * Rename screenshot template * Address review * Revert rename of PlayerInventoryStorage * Checkstyle fixes * Name adjustments * CHUNK_STATUS_CHANGE -> FULL_CHUNK_STATUS_CHANGE * ClientCommandsRegistrationCallback -> ClientCommandRegistrationCallback getCreativeModeTabsOnPage -> getTabsOnPage getSelectedCreativeModeTab -> getSelectedTab setSelectedCreativeModeTab -> setSelectedTab * Remove some old package regex hacks * Update fabric-command-api-v2/src/client/java/net/fabricmc/fabric/api/client/command/v2/ClientCommands.java Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> * rename access to buildContext in sound api-v1 testmod * Renames for FULL_CHUNK_STATUS_CHANGE * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/package-info.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerStorageImpl.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerStorageImpl.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Further rename Creative Tab API * Name tweaks * Use DataComponentHolder and TypedInstance for TransferVariant's * HOLDER_LOOKUP_KEY -> REGISTRY_LOOKUP_KEY * accept -> insert --------- Co-authored-by: tenneb22 <126985099+Tenneb22@users.noreply.github.com> Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk> Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com> Co-authored-by: Cassian Godsted <cassian@godsted.com> Co-authored-by: Toffikk <slodkitofik@gmail.com> Co-authored-by: coredex-source <samdhi2323@gmail.com> Co-authored-by: Dimas Firmansyah <deirn@bai.lol> Co-authored-by: CrypticVerse <crypticversemc@gmail.com> Co-authored-by: Kilip1000 <206253641+Kilip1000@users.noreply.github.com> Co-authored-by: sylv256 <contact@sylv.gay> Co-authored-by: Coredex <73810221+coredex-source@users.noreply.github.com> Co-authored-by: Kilip1000 <kilian.lennard.pro@gmail.com> Co-authored-by: Sylv <github.9ehj1@sylv.gay> Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> Co-authored-by: Dennis Ochulor <dennisnwanevu@gmail.com>
2025-12-31 12:00:16 +00:00
include 'fabric-creative-tab-api-v1'
Data Attachment API (#3476) * Data Attachment API * javadoc * Remove AttachmentSerializer & independent syncability and persistence - removed AttachmentSerializer in favor of codecs - renamed serializability to "persistence" - made persistence and syncability independent switches - reworked convenience registry methods to use Suppliers from the get-go * Move some serialization-related methods to impl - changed logger name * rename Attachment to AttachmentType * Added DefaultedAttachmentType and reworded Javadoc * add warning in getAttached * javadoc * fix defaulted API * Add unit tests * remove DefaultedAttachmentType, add helper methods bikeshedding inbound * add more unit tests * add testmod it works * stash syncing for a further PR * missed license header * address most reviews * more reviews * naming convention * fix tyop * fix invalid file name error * simplify API in the absence of sync It was established that the presence of a codec might be useful for other things than persistence, and while this seems to couple the two, the API can be changed later in a backward-compatible way if need be. * couple codec with persistence committing to the change I mentioned previously * little fixes * Fix mixins + requests - Copy attachments on entity copy,& with a customizable flag in the case of player respawn - Call relevant change-notifying methods when calling setAttached on BEs and chunks - Change persistence key - Fix mixin visibility * Write tests for entity copy * replace mixin by COPY_FROM event * missed license header * more advanced copy mechanics - attachments require an EntityCopyHandler to be copied across entities - a copy handler is automatically derived if there's a codec - updated javadoc for chunk and BE targets * Revert "more advanced copy mechanics" This reverts commit 3f53b554fbd1c64fd21c95c067d14d43b9b77063. * replaced complicated API by a stern warning - also handled cross-world entity teleportation * add gametest * fix compilation * flipped boolean * forgot some more bools to flip * requests * fix FMJ * fix BE mixin and add gametest * add client player entity copying * Use new mob conversion event --------- Co-authored-by: modmuss <modmuss50@gmail.com> (cherry picked from commit 25e1b4769d7a2712159f3f257dcc0270c72461d2)
2024-01-19 11:14:33 +00:00
include 'fabric-data-attachment-api-v1'
include 'fabric-data-generation-api-v1'
include 'fabric-debug-api-v1'
include 'fabric-dimensions-v1'
include 'fabric-entity-events-v1'
include 'fabric-events-interaction-v0'
include 'fabric-game-rule-api-v1'
include 'fabric-gametest-api-v1'
include 'fabric-item-api-v1'
Rename APIs to match Mojang's naming (#5060) * Change include in settings.gradle from 'fabric-screen-handler-api-v1' to 'fabric-menu-api-v1' * Rename fabric-screen-handler-api-v1 directory to fabric-menu-api-v1 * Rename fabric-screen-handler-api-v1-version to fabric-menu-api-v1-version in gradle.properties (not sure about this one) * Rename java packages from screenhandler to menu * Rename some resource files and references * Rename id, name and description in fabric.mod.json * Rename missing directories in the test mod * Rename id, name in the test mod fabric.mod.json, and fix the entrypoints and "depends" section * Rename and change the rest * networking-api-v1 renames (#5058) * api renames, by apple502j (#5057) * reg sync * resource loader * api lookup api * biome api * Creative Mode Tab API renames (#5059) * creative mode tab api Checkstyle rename buttons * remove provides * small change * rename: fabric-sound-api-v1 * item api * Update CustomDamageTest.java * Update settings in testmod * api renames in serialization api v1 * block api * fix renames * remove TODOs * tag api * rename package and add todo * lifecycle-events-v1 renames * rename syncId to containerId * Key Mapping API renames * Fix mixin config * Fix build * Fix build again... * renames in command-api v2 * chore: fix some issues * Update EquipmentSlotProvider.java * chore: fixup javadoc * chore: update some tests’ params * more renames * game test * screen api * fabric-crash-report-info-v1 - Does not seem to need anything else renamed. * fabric-message-api-v1 - commit.1 - ClientReceiveMessageEvents -> ClientLogChatMessageEvents * fabric-message-api-v1 - commit.2 - Patch files previously dependent on ClientReceiveMessageEvents. * rename rendering-fluids and transfer-api * run spotlessApply * where this line comes from? * fabric-message-api-v1 - commit.3 ClientSendMessageEvents -> ClientHandleChatInputEvents * Fix build * fabric-message-api-v1 - commit.4 - Patched ChatListenerMixin. - Done with client renaming. * fabric-message-api-v1 - commit.5 - done. - ServerMessageEvents -> ServerChatEvents - ServerMessageDecoratorEvents -> ServerChatDecoratorEvents - Patched Mixins. - Patched testmod. - Finalized renaming of fabric-message-api-v1. * Rename game rule api * fix import order issue * client-gametest-api-v1 renames * Entity Events API renames * Events Interaction API renames * Rename module to Creative Tab API * content-registries-v0 renames * renames to loot * Mapped a bit (Should've committed more frequently, oops) * A bit more * refactor!(rendering-v1): update API names * fix: checkstyle issues * refactor(rendering-v1)!: `AtlasSourceRegistry` -> `SpriteSourceRegistry` * refactor(object-builder-api-v1)!: api renames * fix: checkstyle * refactor(rendering-v1)!: `ColorProviderRegistry` -> `BlockColorRegistry` * refactor(particles-v1)!: api renames * refactor(particles-v1)!: `ExtendedBlockStateParticleEffectSyncClient` -> `ExtendedBlockParticleOptionSyncClient` * fix: checkstyle lol * Mapped some packet-related things * Even more packets! * client -> minecraft * All worlds? (I hope Intellij didn't mess up at hierarchy renaming) * Map the last few things Also ran the necessary gradle tasks * refactor(data-attachment-api-v1): api renames * refactor(data-attachment-api-v1): s2c -> clientbound, c2s -> serverbound (the superior names) * refactor(data-attachment-api-v1): packetCodec -> streamCodec * fix: damn checkstyle * Update fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/ChunkSectionLayerMap.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * refactor(rendering-v1): `BlockColorProviderRegistry` -> `ColorProviderRegistry` * refactor(rendering-v1): `AtlasSource` -> `SpriteSource` * refactor(rendering-v1): update names in `LevelRenderEventsTests` * Temporary change * S2C -> ClientBound * Done with ModelProviderMixin (except for writer, which is a bit more complicated) * Done with FabricAdvancementProvider, (except for writer, which is a bit more complicated) * Rename to cachedOutput Saw cache getting used though, so I'll change this back to cache, oopsy * Some more cache things * TestModClient things * Fixed checkstyle errors? * Improve javadoc readability * SoundTypeBuilder done? * Javadoc misc and registry -> holder * Misc * FabricCodecDataProvider renames * FabricDynamicRegistryProvider - 1 (not done) Maybe did something wrong. This is a quite convoluted commit. * FabricDynamicRegistryProvider - 2 (not done) * entries -> ressources Is this good? * Rename ClientBound -> Clientbound * RegistryLookup * registryLookup * More of the same * refactor(renderer-api-v1)!: api renames * refactor(renderer-api-v1): `TextureAtlasMixinAtlas` -> `TextureAtlasMixin` * refactor(renderer-api-v1): `blockAndTintGetter` -> `level` * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/model/ModelStateHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/FabricBlockRenderDispatcher.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/RenderLayerHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/RenderLayerHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/mixin/renderer/client/block/render/BlockFeatureRendererMixin.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * refactor(renderer-api-v1)!: `FabricBlockStateModel#particleSprite` -> `#particleIcon` * refactor(renderer-api-v1)!: `ExtendedBlockStateModelSubmit` -> `ExtendedBlockModelSubmit` * fix(renderer-api-v1): `#particleSprite` -> `#particleIcon` * refactor(renderer-api-v1)!: `FabricBlockModelShaper#getModelParticleSprite` -> `#getModelParticleIcon` * refactor(renderer-api-v1)!: `FabricBlockModelShaper#getModelParticleIcon` -> `#getParticleIcon` * refactor(renderer-api-v1)!: missed api renames * refactor(renderer-indigo): api renames * refactor(renderer-indigo): missed renames * Mapped a bit (Should've committed more frequently, oops) * Done with ModelProviderMixin (except for writer, which is a bit more complicated) * Done with FabricAdvancementProvider, (except for writer, which is a bit more complicated) * Rename to cachedOutput Saw cache getting used though, so I'll change this back to cache, oopsy * Some more cache things * TestModClient things * Fixed checkstyle errors? * Improve javadoc readability * SoundTypeBuilder done? * Javadoc misc and registry -> holder * Misc * FabricCodecDataProvider renames * FabricDynamicRegistryProvider - 1 (not done) Maybe did something wrong. This is a quite convoluted commit. * FabricDynamicRegistryProvider - 2 (not done) * entries -> ressources Is this good? * RegistryLookup * registryLookup * More of the same * Missed one * Params * Another mixin rename Missed a comment Revert This time? Rename? Why doesn't rename the interface that's getting injected work? Revert "Rename?" This reverts commit 1a1b9814a92e9d3780fe1f274ad78effa9bcfa12. * Revert "Another mixin rename" This reverts commit 89867543715ad91a9bf3d88d66d665523d8565ec. * I keep forgetting this one * Data -> Pack * Data -> Pack 2? * Generators with an s, also block, not blockState * Missed one * I think I was a bit too bold with that one * registry entry -> holder in javadoc This one is debatable? * Data -> Pack 3 * Interface injection please work? * BlockLootTableGenerator -> BlockLootSubProvider * Revert "Interface injection please work?" This reverts commit 34febbcd0c471fcf0931fa7726fd2a3d03053dd2. * Data -> Pack 4 * Undo an oopsy * These parameter names should go unchanged Went through the git diff and undid some silliness manually * Undid even more unnecessary changes * I think I went to overboard with my undos, same bug as before * Some more undos * More undos * Undos, also, accidentally based this branch on the wrong branch * Undos * I could at least change the javadoc.. * yep, undid this one too * refactor(model-loading-api-v1)!: api renames * Now only one thing is left * oops, forgot mcdev * Fix * World -> Level * tickCounter -> deltaTracker * drawContext -> graphics * Go through vibecoded script output * Interface injections and spotless * Text -> component * Fix mixin config * Rename screenshot template * Address review * Revert rename of PlayerInventoryStorage * Checkstyle fixes * Name adjustments * CHUNK_STATUS_CHANGE -> FULL_CHUNK_STATUS_CHANGE * ClientCommandsRegistrationCallback -> ClientCommandRegistrationCallback getCreativeModeTabsOnPage -> getTabsOnPage getSelectedCreativeModeTab -> getSelectedTab setSelectedCreativeModeTab -> setSelectedTab * Remove some old package regex hacks * Update fabric-command-api-v2/src/client/java/net/fabricmc/fabric/api/client/command/v2/ClientCommands.java Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> * rename access to buildContext in sound api-v1 testmod * Renames for FULL_CHUNK_STATUS_CHANGE * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/package-info.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerStorageImpl.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerStorageImpl.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Further rename Creative Tab API * Name tweaks * Use DataComponentHolder and TypedInstance for TransferVariant's * HOLDER_LOOKUP_KEY -> REGISTRY_LOOKUP_KEY * accept -> insert --------- Co-authored-by: tenneb22 <126985099+Tenneb22@users.noreply.github.com> Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk> Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com> Co-authored-by: Cassian Godsted <cassian@godsted.com> Co-authored-by: Toffikk <slodkitofik@gmail.com> Co-authored-by: coredex-source <samdhi2323@gmail.com> Co-authored-by: Dimas Firmansyah <deirn@bai.lol> Co-authored-by: CrypticVerse <crypticversemc@gmail.com> Co-authored-by: Kilip1000 <206253641+Kilip1000@users.noreply.github.com> Co-authored-by: sylv256 <contact@sylv.gay> Co-authored-by: Coredex <73810221+coredex-source@users.noreply.github.com> Co-authored-by: Kilip1000 <kilian.lennard.pro@gmail.com> Co-authored-by: Sylv <github.9ehj1@sylv.gay> Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> Co-authored-by: Dennis Ochulor <dennisnwanevu@gmail.com>
2025-12-31 12:00:16 +00:00
include 'fabric-key-mapping-api-v1'
include 'fabric-lifecycle-events-v1'
include 'fabric-loot-api-v3'
Rename APIs to match Mojang's naming (#5060) * Change include in settings.gradle from 'fabric-screen-handler-api-v1' to 'fabric-menu-api-v1' * Rename fabric-screen-handler-api-v1 directory to fabric-menu-api-v1 * Rename fabric-screen-handler-api-v1-version to fabric-menu-api-v1-version in gradle.properties (not sure about this one) * Rename java packages from screenhandler to menu * Rename some resource files and references * Rename id, name and description in fabric.mod.json * Rename missing directories in the test mod * Rename id, name in the test mod fabric.mod.json, and fix the entrypoints and "depends" section * Rename and change the rest * networking-api-v1 renames (#5058) * api renames, by apple502j (#5057) * reg sync * resource loader * api lookup api * biome api * Creative Mode Tab API renames (#5059) * creative mode tab api Checkstyle rename buttons * remove provides * small change * rename: fabric-sound-api-v1 * item api * Update CustomDamageTest.java * Update settings in testmod * api renames in serialization api v1 * block api * fix renames * remove TODOs * tag api * rename package and add todo * lifecycle-events-v1 renames * rename syncId to containerId * Key Mapping API renames * Fix mixin config * Fix build * Fix build again... * renames in command-api v2 * chore: fix some issues * Update EquipmentSlotProvider.java * chore: fixup javadoc * chore: update some tests’ params * more renames * game test * screen api * fabric-crash-report-info-v1 - Does not seem to need anything else renamed. * fabric-message-api-v1 - commit.1 - ClientReceiveMessageEvents -> ClientLogChatMessageEvents * fabric-message-api-v1 - commit.2 - Patch files previously dependent on ClientReceiveMessageEvents. * rename rendering-fluids and transfer-api * run spotlessApply * where this line comes from? * fabric-message-api-v1 - commit.3 ClientSendMessageEvents -> ClientHandleChatInputEvents * Fix build * fabric-message-api-v1 - commit.4 - Patched ChatListenerMixin. - Done with client renaming. * fabric-message-api-v1 - commit.5 - done. - ServerMessageEvents -> ServerChatEvents - ServerMessageDecoratorEvents -> ServerChatDecoratorEvents - Patched Mixins. - Patched testmod. - Finalized renaming of fabric-message-api-v1. * Rename game rule api * fix import order issue * client-gametest-api-v1 renames * Entity Events API renames * Events Interaction API renames * Rename module to Creative Tab API * content-registries-v0 renames * renames to loot * Mapped a bit (Should've committed more frequently, oops) * A bit more * refactor!(rendering-v1): update API names * fix: checkstyle issues * refactor(rendering-v1)!: `AtlasSourceRegistry` -> `SpriteSourceRegistry` * refactor(object-builder-api-v1)!: api renames * fix: checkstyle * refactor(rendering-v1)!: `ColorProviderRegistry` -> `BlockColorRegistry` * refactor(particles-v1)!: api renames * refactor(particles-v1)!: `ExtendedBlockStateParticleEffectSyncClient` -> `ExtendedBlockParticleOptionSyncClient` * fix: checkstyle lol * Mapped some packet-related things * Even more packets! * client -> minecraft * All worlds? (I hope Intellij didn't mess up at hierarchy renaming) * Map the last few things Also ran the necessary gradle tasks * refactor(data-attachment-api-v1): api renames * refactor(data-attachment-api-v1): s2c -> clientbound, c2s -> serverbound (the superior names) * refactor(data-attachment-api-v1): packetCodec -> streamCodec * fix: damn checkstyle * Update fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/ChunkSectionLayerMap.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * refactor(rendering-v1): `BlockColorProviderRegistry` -> `ColorProviderRegistry` * refactor(rendering-v1): `AtlasSource` -> `SpriteSource` * refactor(rendering-v1): update names in `LevelRenderEventsTests` * Temporary change * S2C -> ClientBound * Done with ModelProviderMixin (except for writer, which is a bit more complicated) * Done with FabricAdvancementProvider, (except for writer, which is a bit more complicated) * Rename to cachedOutput Saw cache getting used though, so I'll change this back to cache, oopsy * Some more cache things * TestModClient things * Fixed checkstyle errors? * Improve javadoc readability * SoundTypeBuilder done? * Javadoc misc and registry -> holder * Misc * FabricCodecDataProvider renames * FabricDynamicRegistryProvider - 1 (not done) Maybe did something wrong. This is a quite convoluted commit. * FabricDynamicRegistryProvider - 2 (not done) * entries -> ressources Is this good? * Rename ClientBound -> Clientbound * RegistryLookup * registryLookup * More of the same * refactor(renderer-api-v1)!: api renames * refactor(renderer-api-v1): `TextureAtlasMixinAtlas` -> `TextureAtlasMixin` * refactor(renderer-api-v1): `blockAndTintGetter` -> `level` * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/model/ModelStateHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/FabricBlockRenderDispatcher.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/RenderLayerHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/api/renderer/v1/render/RenderLayerHelper.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * Update fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/mixin/renderer/client/block/render/BlockFeatureRendererMixin.java Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> * refactor(renderer-api-v1)!: `FabricBlockStateModel#particleSprite` -> `#particleIcon` * refactor(renderer-api-v1)!: `ExtendedBlockStateModelSubmit` -> `ExtendedBlockModelSubmit` * fix(renderer-api-v1): `#particleSprite` -> `#particleIcon` * refactor(renderer-api-v1)!: `FabricBlockModelShaper#getModelParticleSprite` -> `#getModelParticleIcon` * refactor(renderer-api-v1)!: `FabricBlockModelShaper#getModelParticleIcon` -> `#getParticleIcon` * refactor(renderer-api-v1)!: missed api renames * refactor(renderer-indigo): api renames * refactor(renderer-indigo): missed renames * Mapped a bit (Should've committed more frequently, oops) * Done with ModelProviderMixin (except for writer, which is a bit more complicated) * Done with FabricAdvancementProvider, (except for writer, which is a bit more complicated) * Rename to cachedOutput Saw cache getting used though, so I'll change this back to cache, oopsy * Some more cache things * TestModClient things * Fixed checkstyle errors? * Improve javadoc readability * SoundTypeBuilder done? * Javadoc misc and registry -> holder * Misc * FabricCodecDataProvider renames * FabricDynamicRegistryProvider - 1 (not done) Maybe did something wrong. This is a quite convoluted commit. * FabricDynamicRegistryProvider - 2 (not done) * entries -> ressources Is this good? * RegistryLookup * registryLookup * More of the same * Missed one * Params * Another mixin rename Missed a comment Revert This time? Rename? Why doesn't rename the interface that's getting injected work? Revert "Rename?" This reverts commit 1a1b9814a92e9d3780fe1f274ad78effa9bcfa12. * Revert "Another mixin rename" This reverts commit 89867543715ad91a9bf3d88d66d665523d8565ec. * I keep forgetting this one * Data -> Pack * Data -> Pack 2? * Generators with an s, also block, not blockState * Missed one * I think I was a bit too bold with that one * registry entry -> holder in javadoc This one is debatable? * Data -> Pack 3 * Interface injection please work? * BlockLootTableGenerator -> BlockLootSubProvider * Revert "Interface injection please work?" This reverts commit 34febbcd0c471fcf0931fa7726fd2a3d03053dd2. * Data -> Pack 4 * Undo an oopsy * These parameter names should go unchanged Went through the git diff and undid some silliness manually * Undid even more unnecessary changes * I think I went to overboard with my undos, same bug as before * Some more undos * More undos * Undos, also, accidentally based this branch on the wrong branch * Undos * I could at least change the javadoc.. * yep, undid this one too * refactor(model-loading-api-v1)!: api renames * Now only one thing is left * oops, forgot mcdev * Fix * World -> Level * tickCounter -> deltaTracker * drawContext -> graphics * Go through vibecoded script output * Interface injections and spotless * Text -> component * Fix mixin config * Rename screenshot template * Address review * Revert rename of PlayerInventoryStorage * Checkstyle fixes * Name adjustments * CHUNK_STATUS_CHANGE -> FULL_CHUNK_STATUS_CHANGE * ClientCommandsRegistrationCallback -> ClientCommandRegistrationCallback getCreativeModeTabsOnPage -> getTabsOnPage getSelectedCreativeModeTab -> getSelectedTab setSelectedCreativeModeTab -> setSelectedTab * Remove some old package regex hacks * Update fabric-command-api-v2/src/client/java/net/fabricmc/fabric/api/client/command/v2/ClientCommands.java Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> * rename access to buildContext in sound api-v1 testmod * Renames for FULL_CHUNK_STATUS_CHANGE * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/package-info.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerStorageImpl.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerStorageImpl.java Co-authored-by: D. Firmansyah <deirn@bai.lol> * Further rename Creative Tab API * Name tweaks * Use DataComponentHolder and TypedInstance for TransferVariant's * HOLDER_LOOKUP_KEY -> REGISTRY_LOOKUP_KEY * accept -> insert --------- Co-authored-by: tenneb22 <126985099+Tenneb22@users.noreply.github.com> Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk> Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com> Co-authored-by: Cassian Godsted <cassian@godsted.com> Co-authored-by: Toffikk <slodkitofik@gmail.com> Co-authored-by: coredex-source <samdhi2323@gmail.com> Co-authored-by: Dimas Firmansyah <deirn@bai.lol> Co-authored-by: CrypticVerse <crypticversemc@gmail.com> Co-authored-by: Kilip1000 <206253641+Kilip1000@users.noreply.github.com> Co-authored-by: sylv256 <contact@sylv.gay> Co-authored-by: Coredex <73810221+coredex-source@users.noreply.github.com> Co-authored-by: Kilip1000 <kilian.lennard.pro@gmail.com> Co-authored-by: Sylv <github.9ehj1@sylv.gay> Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> Co-authored-by: Dennis Ochulor <dennisnwanevu@gmail.com>
2025-12-31 12:00:16 +00:00
include 'fabric-menu-api-v1'
include 'fabric-message-api-v1'
include 'fabric-model-loading-api-v1'
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-05 13:06:42 -06:00
include 'fabric-networking-api-v1'
include 'fabric-object-builder-api-v1'
2025-09-11 10:40:25 +01:00
include 'fabric-particles-v1'
include 'fabric-permission-api-v1'
include 'fabric-recipe-api-v1'
include 'fabric-registry-sync-v0'
include 'fabric-renderer-api-v1'
include 'fabric-renderer-indigo'
2019-05-17 23:24:37 +02:00
include 'fabric-rendering-fluids-v1'
include 'fabric-rendering-v1'
include 'fabric-resource-conditions-api-v1'
include 'fabric-resource-loader-v1'
include 'fabric-screen-api-v1'
include 'fabric-serialization-api-v1'
include 'fabric-sound-api-v1'
include 'fabric-tag-api-v1'
include 'fabric-transfer-api-v1'
include 'fabric-transitive-access-wideners-v1'
include 'deprecated'
include 'deprecated:fabric-resource-loader-v0'