* Use local variable names for all mixin locals
* Add checkstyle rule + more fixes
* More fixes
* Renames
* Cleanup
* Prevent using name for args only locals
---------
Co-authored-by: joe <burtonjae@hotmail.co.uk>
* 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 8986754371.
* 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 34febbcd0c.
* 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>
* Initial plan
* Add checkstyle rule to disallow @Debug annotation usage
Co-authored-by: modmuss50 <4324090+modmuss50@users.noreply.github.com>
* Remove comment and format @Debug rule query on single line as requested
Co-authored-by: modmuss50 <4324090+modmuss50@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: modmuss50 <4324090+modmuss50@users.noreply.github.com>
(cherry picked from commit e6b6ce1447)
* Move duplicated v0/v1 impl packages to v0 subpackages
Fixes#2616. The convention is adopted from the command API (v1)
whose impl classes have the v1 subpackage.
* Separate client code into its own packages everywhere
* Fix code style
* Fix code style, part 2
* Allow v0 in package names
* Allow v0 in package names (fixed)
(cherry picked from commit 9244241639)
* Update command registration API to reflect vanilla changes
* Allow module versions in impl+mixin packages
* Use v2 module, keeping v1 for server commands at least
* update, address review
Co-authored-by: modmuss50 <modmuss50@gmail.com>
# 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 dc716ea167)