Commit graph

151 commits

Author SHA1 Message Date
Zoe
0f4e5f55cb
Add FabricEntityLootTableProvider for datagen ()
* Add FabricEntityLootTableProvider

* Add ConditionEntityLootTableGenerator

* Apply spotless

* Add datagen test for entity loot tables

* Add test dependency on object builder API

Removes DFU error:
No data fixer registered for fabric-data-gen-api-v1-testmod:simple_entity

* Remove no longer necessary EntityLootTableGenerator#register invoker

* Fix checkstyle

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2025-03-16 13:34:57 +00:00
ImVeryBad
60b6f1b7ce
Add vararg helper methods for multi-tag support in the FabricTagBuilder ()
* Add multiple helper varargs methods for tags

* Fixed a bit the JavaDocs grammar

* More clarity for the addTags in JavaDocs

* Changed the Stream.of() with a for loop

* Added blank lines after block at same indentation  level

* Small grammar mistakes

* Changed the `add(T... elements)` to use for loop instead of `Stream.of()`
2025-02-20 18:02:48 +00:00
Juuz
20ea1e23ee Add tag aliases ()
* Add tag aliases

* Document and rename tag alias internals

* Make the tag alias directory singular to match Mojang's recent style

* Add a note about tag aliases to client tag documentation

* Support missing tags in alias groups

* Support tag aliases for dynamic and reloadable registries

* TagAliasGroup: Document naming conventions for c tag alias groups

* Add tag alias test mod

* Fix inline return checkstyle

* Add test for tag alias data generation

* Fix checkstyle (again)

* Add tag translations to tag API testmod

* Uncomment accidentally commented out code

* SimpleRegistryMixin: Improve a log message

* TagAliasTest: Improve assertion messages

* Fix tag aliases for dynamic registries not applying on /reload

* Clean up log message once again

* Address review feedback

* Make missing interfaces throw CCEs

* Add README

* Move TagAliasGroup into the impl package

(cherry picked from commit a730659c14)
2024-12-12 16:19:34 +00:00
modmuss
466a140b43
Update to loom 1.9 ()
* Update to loom 1.9 and improve task caching

* Stable
2024-12-05 20:08:38 +00:00
modmuss
a22746d3db
Make data generation .cache reproducible ()
* Make data generation .cache file reproducible

* Make the cache even more reproducable.

Thanks b8a38e10ef/fabric/src/main/java/io/github/gaming32/bingo/mixin/fabric/MixinHashCache_ProviderCache.java

* Use ModifyExpressionValue
2024-12-05 20:07:17 +00:00
modmuss
5bea021697
Fix some datagen taws () 2024-12-02 19:53:02 +00:00
modmuss
bdca9acb21
Add more data generation TAWs ()
* Add TAW for BlockStateModelGenerator.CrossType

* And more
2024-11-30 18:17:26 +00:00
modmuss50
5d559cbc72 1.21.4-pre1 2024-11-20 15:12:48 +00:00
modmuss50
8eedec2580 Fix ModelProvider.ItemAssets generating duplicate models. 2024-11-18 18:06:51 +00:00
apple502j
f12498d0af
Fix includeData in pick events ()
* Fix includeData in pick events

* Fix javadoc
2024-11-18 18:05:28 +00:00
modmuss50
a884cf33d9 Ensure that the full datagen test is ran on build. 2024-11-14 11:01:15 +00:00
modmuss50
34467ab425 Add back missing generated atlas files 2024-11-13 18:38:46 +00:00
modmuss50
203e6b2369 24w46a 2024-11-13 18:31:05 +00:00
modmuss
77a65688c8
Update to 24w45a ()
* Update to 24w45a

* Fix model provider and build

* Remove old mixin file

* Bump versions
2024-11-06 21:10:00 +00:00
haykam821
7feeb733ad
Update mod to Minecraft snapshot 24w44a ()
* Update mod to Minecraft snapshot 24w44a

* Bump version

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-10-30 18:44:56 +00:00
modmuss
fd37071f8b
Update Loom and Loader () 2024-10-27 09:44:05 +00:00
modmuss50
c47b9d4307 Update Fabric Loader 2024-10-15 15:12:08 +01:00
haykam821
c811259261
Update mod to Minecraft 1.21.2 pre-release 3 () 2024-10-11 15:02:38 +01:00
modmuss50
344e05376f Update with pre2 access wideners 2024-10-10 15:37:07 +01:00
modmuss50
488720f071 1.21.2-pre2
Just mappings
2024-10-10 15:29:13 +01:00
haykam821
57632285fa
Update mod to Minecraft 1.21.2 pre-release 1 ()
* Update mod to Minecraft 1.21.2 pre-release 1

* Bump version

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-10-08 18:00:08 +01:00
haykam821
86ae0e5586
Update mod to Minecraft snapshot 24w40a ()
* Update mod to Minecraft snapshot 24w40a

* Bump versions

* Add new items to tags

* Add more missing boats

* Turns out they werent missing

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-10-02 20:44:30 +01:00
modmuss
a3dc8b6ac6
Fix Recipe Provider not calling generate ()
* Fix Recipe Provider not calling generate

* Commit data generated files to repo
2024-09-10 13:17:13 +01:00
modmuss
d48ec150ba
24w36a ()
* 24w36a

* Some fixes

* More work

* Fixes

* Update yarn

* Update fabric loader

* Bump versions
2024-09-05 11:42:30 +01:00
modmuss
6c0945c34f
Update Fabric Loader and re-enable server test () 2024-08-29 17:55:03 +01:00
apple502j
2cd4845256
24w35a () 2024-08-29 17:54:21 +01:00
modmuss
1bb677a646 Port to 24w33a ()
Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
Co-authored-by: hypherionmc <hypherionmc@gmail.com>
(cherry picked from commit 952fb19a0df7354e8352ef0c993a956b2bed32c2)
2024-08-18 19:16:27 +01:00
modmuss
16c4ae257c
Rename FabricBlockLootTableProvider.registryLookup to stop hiding the protected vanilla field. () 2024-06-08 14:03:17 +01:00
modmuss
b55973447a
1.21-pre1 port ()
* 1.21-pre1 port

* Bump version
2024-05-29 16:25:22 +01:00
apple502j
6fc22b9905
Improve 24w21b port ()
* Delete `FabricDimensions`

This broke during the 1.21 cycle and can be easily replaced with `Entity#teleportTo`.

* Rename testmod data directories

* [Breaking] use singular path in GameTest

* Fix attribute modifier in testmod

* Small mixin refactors related to teleportTo

* Fix behavior change in ModNioResourcePack for invalid paths

* Fix javadocs referencing Identifier ctor

* Add new FabricCodecDataProvider ctor

* Move empty structure

* Fix transfer api testmod

* pro tip: don't write datagen output by hand

* Refactor networking API to remove redundant code

* Stop calling CustomDamageHandler in creative mode
2024-05-29 15:31:48 +01:00
modmuss
6573ed8ccc
24w21b ()
Co-authored-by: Drex <nicknamedrex@gmail.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
2024-05-23 10:20:54 +01:00
Jonathan Coates
7081616045 Registry resource conditions ()
* Add resource conditions to dynamic registries

* Support conditions in FabricDynamicRegistryProvider

 - Add matching overloads for all add(...) methods which take a varargs
   list of ResourceConditions.

 - Add an additional overload for registering RegistryEntry.References
   directly. This makes it a little easier to register directly from a
   RegistryBuilder.

* Throw error if we cannot add resource conditions

* Rename EntryWithConditions to ConditionalEntry

(cherry picked from commit a5d5299dfb)
2024-05-20 09:33:44 +01:00
modmuss50
5e47b9cbbd 24w19b 2024-05-10 16:33:03 +01:00
Jonathan Coates
1c4a86e83a Support extending dynamic registries in datagen ()
- Add all dynamic registries to the initial registry.
 - Expose a getter for the registry future.
 - Register cloners for all dynamic registries.

(cherry picked from commit ad4744939b)
2024-05-07 19:06:53 +01:00
TelepathicGrunt
619abec242 Default English Translations for c namespaced tags ()
* Created tag translation datagen

* generate lang file

* Add fruit translation

* renamed interface injection

* Adjust missing translation message

* Fixed for checkStyle

* More checkstyle fighting...

* Bump version of modules.

* Oops wrong module got bumped

* moving and renaming files

* adjust enum class naming

* rename enum and move package

* Renamed one more enum

* Undo version bump. Will be handled at release

* Some suggestions implemented

* Added crowdin entry

* Update crowdin.yml

Co-authored-by: modmuss <modmuss50@gmail.com>

* Cleanup enum checking

* spotless fixes

* Added buckets and powder snow bucket tag translation

* Some more suggested changes

* setup ConventionLogWarnings to match ConventionLogWarningsClient setup

* Change property to be usable in prod

* Set short as default property

* Remove unused import

* Fixed copy/paste error

* fixed ingot translations

* lang and method name fixes

* Fixed filepath issue

* Fixed redstone name

* fixed javadoc whitespace

* Move translation warning to server

* Move translation class to better file path

* trying to pass the regex

* put it under impl

* Cleanup translation check

* Update fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>

* Update fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Update fabric-convention-tags-v2/src/main/java/net/fabricmc/fabric/api/tag/FabricTagKey.java

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Update fabric-convention-tags-v2/src/main/java/net/fabricmc/fabric/api/tag/FabricTagKey.java

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
(cherry picked from commit 70fd1b462f)
2024-05-07 19:06:41 +01:00
modmuss
0af3f5a702
24w18a ()
Co-authored-by: Drex <nicknamedrex@gmail.com>
2024-05-04 14:28:29 +01:00
TelepathicGrunt
7f945d5bb6
Refactor convention tags () 2024-04-16 18:01:57 +01:00
apple502j
3b6dc5deb2
[1.20.5] Codec-based Resource Conditions and refactors ()
* Initial move to codec-based resource conditions

* Move default condition types to DefaultResourceConditionTypes

* Move built-in condition types to impl

* Run spotlessApply

* Move default condition registration to entrypoint in imp

* Formatting fixes

* Add back package-info.java

* Make it compatible with new DFU

* checkstyle

* Refactor FeaturesEnabledResourceCondition

* Pass RegistryWrapper and reduce reliance on statics

* Some more improvements

* Add back some tests

* Add more tests

* Add back tags_populated support, clean up code

* Some more improvements

* add javadocs (wip)

* Fix unfixed merge conflict

* Javadocs

* Fix null condition in addConditions

* Allow empty arrays in certain codecs

* Move addConditions to datagen impl

* Address reviews

* add debug log

* Store features in normal static field

* Fix TagsPopulatedResourceCondition#getType

---------

Co-authored-by: Apollo <102649729+Apollounknowndev@users.noreply.github.com>
2024-04-10 15:40:15 +01:00
apple502j
97f703da44
Improve data attachment port ()
* Bump yarn

* Apply yarn update

* Fix porting of Data Attachment block entity support

* Fix FrameBlockEntity testmod
2024-04-03 15:39:47 +01:00
modmuss
b21c00cb44
24w13a ()
Fixes https://github.com/FabricMC/fabric/issues/3669

Co-authored-by: Drex <nicknamedrex@gmail.com>
2024-03-27 19:26:14 +00:00
apple502j
9b3069f652
Fully port to 24w12a ()
* Bump yarn

* Apply yarn update

* Sync map decorations type registry

* Remove Mining Level API

* Port loot API

* whoops

* Rename LootManagerMixin

* Fix javadoc

* Fix registerGiftLootTable

* RegistryKey is traditionally compared using identity

* Fix wrong loot source being used
2024-03-27 16:47:29 +00:00
modmuss
e9d2a72b4f
24w12a ()
# Removed
- FabricItemStack.isSuitableFor (replaced with vanilla component)
- FabricItemStack.getFoodComponent (replaced with vanilla component)
- ResourceReloadListenerKeys.LOOT_TABLES
- fabric-resource-conditions-api-v1 support for loot tables

# Disabled modules
- fabric-loot-api-v2
- fabric-mining-level-api-v1
2024-03-20 19:08:34 +00:00
apple502j
42c290b4ca
24w10a porting fixes ()
* Rename mixin using unmapped name

* Fix potential crash in item API testmod

* Improve custom ingredient javadoc

* More javadoc improvements

* Add more tests

* whoops

* Fix typos

* Remove test for strict NBT matching

* another whoopsie

* Finish NBT -> components changes

Breaking change: `FabricItem#allowNbtUpdateAnimation` was renamed to
`allowComponentsUpdateAnimation`.

* Fix broken javadoc links

* Fix broken screen handler testmod
2024-03-12 09:22:55 +00:00
modmuss50
031f0cf067 24w10a 2024-03-06 16:40:52 +00:00
maityyy
fc9addbd3c
Fix loot table provider not working after 24w09a port () 2024-03-04 09:43:50 +00:00
modmuss
1172e89799
24w09a ()
* In game

* More fixes

* Small fixes + changes

* Rename

* Fix test
2024-02-29 19:16:35 +00:00
modmuss50
548b1e1b9e 24w07a 2024-02-14 19:17:38 +00:00
modmuss50
54b4400cee 24w06a 2024-02-07 19:01:58 +00:00
apple502j
04ac8cf319
Improve 24w05a port ()
* Fix wrong ops being used in AttachmentSerializingImpl

* Remove unused private method

* Require and use registry future in advancements and loot tables
2024-02-05 11:30:14 +00:00
modmuss
03be9f1df2
Port to 24w05a ()
Co-authored-by: Drex <nicknamedrex@gmail.com>
2024-01-31 20:24:57 +00:00