Commit graph

1916 commits

Author SHA1 Message Date
modmuss
ecf51cdcd2 Sort & format language files ()
(cherry picked from commit 7d48d439b6)
2025-01-14 14:09:30 +00:00
TelepathicGrunt
de636c47f7 Add c:flowers, c:flowers/tall, and c:flowers/small block and item tags ()
* Add `c:flowers`, `c:flowers/tall`, and `c:flowers/small` block and item tags

* Apply spotless

* remove warning on flowers block tag

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

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

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

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

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

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

* remove small flower tag alias

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit dfeded7d7d)
2025-01-14 14:09:28 +00:00
modmuss50
eaec5033d5 Revert "Fix available stonecutting recipe recalculation not being stack-aware ()"
This reverts commit 339ab8c477.

(cherry picked from commit 160b66fafb)
2025-01-09 00:00:27 +00:00
modmuss50
86c3a9f167 25w02a 2025-01-08 17:38:47 +00:00
modmuss50
3e406e5282 Bump version 2025-01-07 18:37:33 +00:00
Fabric Bot
0c85f9a94f
New Crowdin updates ()
* New translations en_us.json (Japanese)

* New translations en_us.json (Japanese)
2025-01-07 18:30:00 +00:00
PepperCode1
8041d50724
Fix extra models registered through ModelLoadingPlugin only loading top level ()
- Adjust testmod to make test extra model have a parent that is not referenced by any other model
2025-01-07 18:29:43 +00:00
PepperCode1
50f0feb2ec
Fix MutableQuadViewImpl#fromVanilla methods not setting correct normal flags ()
- The (int[], int) overload used to keep the normal flags as is
- The (BakedQuad, RenderMaterial, Direction) overload used to reset all normal flags
- The normal flag for a vertex is now set if and only if the normal is not zero, ignoring the W component
- Clarify that MutableQuadView#fromVanilla(BakedQuad, ...) resets the quad tag
2025-01-07 18:29:18 +00:00
Bruno Ploumhans
8a549559e3
Implement toString() for materials to help with debugging () 2025-01-07 18:29:07 +00:00
haykam821
339ab8c477
Fix available stonecutting recipe recalculation not being stack-aware ()
Fixes 
2025-01-07 18:28:55 +00:00
Joseph Burton
e5be219492
Solve inconsistency issues in client gametests ()
* Make sure client locking only happens if there will actually be a tick

* Swap the order of client and server tasks and merge the client tasks into one block

* Remove useless capture of @Share

* Ensure all packets are handled in the tick after it was sent

* Add main thread packet handlers to our set before they are added to the vanilla queue, not after

* Don't deadlock if client stops on a frame that doesn't tick

* Fix checkstyle

* Switch back round the client and server tasks

* Only apply vanilla task loop phases if network synchronization is enabled

* Update docs

* Add network synchronizer impl notes to match PR description

* Set ThreadingImpl.gameCrashed back to private. We don't want to accidentally change this value without using the setter.
2025-01-07 18:28:45 +00:00
modmuss50
9ceeb58c7d Fix build
Remove ClientCustomIngredientSyncTests as its fundamentally incompatible with 1.21.4
2024-12-30 13:37:58 +00:00
modmuss50
a84a7df998 Bump version 2024-12-30 13:21:45 +00:00
Fabric Bot
e7d3c6e5fd
New Translation updates ()
* New translations en_us.json (French)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Italian)

* New translations en_us.json (German)

* New translations en_us.json (Italian)

* New translations en_us.json (Chinese Simplified)
2024-12-30 13:13:11 +00:00
Salandora
1fe5646007 [1.21.1-1.21.4] Custom Ingredients sync fix ()
* Fix customIngredients sync ()

* Add client side test for custom ingredients sync

* Fixed styling issues and missing license header

* Applied requested changes and styling fixes

(cherry picked from commit 248df81c7e)
(cherry picked from commit 1572dc3798)
2024-12-30 13:12:03 +00:00
Joseph T. McQuigg
b1c29d8eb4
Check to make sure Feature isn't present before adding it () 2024-12-30 13:10:38 +00:00
Joseph Burton
1f6471e67c
Client gametest screenshot changes ()
* Instant screenshots, with counter and more configurability

* Force consistent window size across all systems and stretch framebuffer to fit the physical window

* Docs

* Wait ticks appropriately for the screenshots in the gametest test

* Should -> must

* Fix window resizing for different display scales

* Fix framebuffer size not being changed at all

* Add test for window resizing
2024-12-30 13:10:23 +00:00
modmuss
f371ccb95a
Fix NetworkingCommonTest causing a stackoverflow when the server is stopped before 50 ticks. () 2024-12-26 18:07:41 +00:00
Joseph Burton
cdad5be837
Fix world closing () 2024-12-26 18:07:31 +00:00
modmuss50
c6322ffbe4 Bump versions 2024-12-24 13:32:28 +00:00
PepperCode1
8ca2ae8d08
Reintroduce BeforeBake and AfterBake model modifiers () 2024-12-24 13:24:03 +00:00
Joseph Burton
99ff640a5d
Add various lifetime-bound try-with-resources APIs to client gametests ()
* Add various lifetime-bound try-with-resources APIs to client gametests
2024-12-24 13:23:52 +00:00
Bruno Ploumhans
efa825c9d7
Fix NPE in WaterPotionStorage#isWaterPotion ()
* Fix NPE in WaterPotionStorage#isWaterPotion

* Make checkstyle happy
2024-12-24 13:23:34 +00:00
TelepathicGrunt
cbf6036a49
Add additional 'c' tags ()
* Add more chest tags

* adjust temperate biome tag

* More Cobblestone tags

* end stones tag

* Gravels tag

* Netherracks tag

* Add all ores tags for consistency

* Ore rates, ore in ground, and ore bearing tags added

* Added sands tags

* added bones tag

* Added eggs tag

* Added feathers tag

* Added gunpowders tag

* Added mushrooms tag

* Added nether stars tag

* Added seeds tags

* Added fence and fence gate tags

* Added nether and end empty category tags

* Added lush biome tag

* Added magical tag

* Added rare biome tag

* Added plateau tag

* added spooky biome tag

* Added sandy tag

* Fixed checkstyle issues

* Run datagen

* more javadoc and fixed biomes in temperature tag

* fixed typo in biome temperature tag javadoc

* attempt at potion tag javadoc

* Add bottled potion subtag

* Datagen bottled potion and biome temperature fix

* Improved potion javadoc more

* Changed potion verb to noun

* Improve potion javadoc to mention data component

* special exception for certain biome tag

* checkstyle

* added more docs and tagging of pale garden

* checkstyle

* Alias fence, fence gate, and ore tags

* Checkkstyle

* Tag alias match c format now

* Add missing nether stripped stems/hyphae to stripped tags

* Bottled Potions display name

* improve javadoc to be clear on tag name for ore bearing and or in tags

* Trigger Build
2024-12-24 13:23:12 +00:00
modmuss50
d70d2c06bb (Block)EntityType builders use @Nullable Booleans 2024-12-18 18:42:55 +00:00
modmuss50
ac4f4b07c0 Bump version 2024-12-18 18:24:20 +00:00
Fabric Bot
3d1fb53995
New Crowdin updates ()
* New translations en_us.json (German)

* New translations en_us.json (German)
2024-12-18 18:22:40 +00:00
modmuss
c6364727a0
Some gradle deprecation fixes () 2024-12-18 18:22:30 +00:00
Joseph Burton
b3e1e3dddf
Client gametest threading tweaks ()
* Ensure game closes promptly when it crashes

* Mutate the stack traces of exceptions thrown in tasks to make them easier to track

* Fix ThreadingImpl.joinAsyncStackTrace

* Don't press menu.quit button from inside the gametest test
2024-12-18 18:22:20 +00:00
PepperCode1
1a8f4cc489
Allow setting canPotentiallyExecuteCommands in BE/E type builders ()
* Allow setting canPotentiallyExecuteCommands in BE/E type builders

- Add FabricBlockEntityTypeBuilder#canPotentiallyExecuteCommands
- Add FabricEntityType.Builder#canPotentiallyExecuteCommands
- Add FabricBlockEntityTypeBuilder#addBlocks(Collection)
- Deprecate FabricBlockEntityTypeBuilder#build(Type)

* Add bool to canPotentiallyExecuteCommands

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-12-18 18:22:00 +00:00
modmuss50
4fc7e41ba7 Bump version 2024-12-16 12:55:54 +00:00
modmuss50
19197ac2cc Update translations
Manually applying: https://github.com/FabricMC/fabric/pull/4254

Closes 
2024-12-16 11:45:13 +00:00
Josiah Glosson
43e15badcf Make dynamic registry element path include namespace for none vanilla registries ()
* Make dynamic registry element path be namespaced

Fixes 

* Remove old method of prepending the namespace

The old method of prepending only applied in certain locations, and thus gives different results depending on the circumstance

* Add simple RegistryKeysTest

---------

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

(cherry picked from commit 3f3c49952e)
2024-12-16 11:42:52 +00:00
modmuss
e918aae7a1
Ensure that there are no duplicate files across projects. ()
* Ensure that there are no duplicate files across projects.

* Depend on check
2024-12-16 11:39:58 +00:00
Joseph Burton
b47eab6b15
Add experimental Client Game Test API ()
* Move client auto tests to new module fabric-client-gametest-api-v1

* Fix run prod Gradle tasks

* Rename remaining references to client auto-tests

* Switch client gametests to using entrypoints

* Disable input and cursor grabbing

* Remove FabricClientTestHelper moving most of it into the context. Add the ability to simulate key and mouse inputs

* Rename and document input methods

* Rename client gametest github action

* Fix tryClickScreenButtonImpl for buttons inside layout widgets

* Address review comments and repackage client gametest test

* Delete wrong reference to TitleScreenAccessor. Thanks mcdev

* Address review comments

* Clean up default game options

* Improve documentation

* Remove module dependencies

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-12-16 11:32:46 +00:00
modmuss
08f5ef8bb2
Rename convention tag mixin package does it doesn't clash with the new tag api. ()
* Rename convention tag mixin package does it doesn't clash.

* Better
2024-12-16 11:31:07 +00:00
modmuss50
86a6267f0c Bump version 2024-12-12 16:31:07 +00:00
Syst3ms
9ba00ebb96 Registry aliasing ()
* initial

* style

* tests + more input checking

* revert formatting

* requests + more tests

* testmod

* check not frozen

* Fixes

* throw on default impl

* optimize implementation

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit e2e49f78f1)
2024-12-12 16:20:22 +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
b1caf1e9d6
Update checkstyle ()
* Update checkstyle

* Fix
2024-12-12 15:58:49 +00:00
PepperCode1
74b7397c46
Fix more custom ingredient implementation issues ()
- Fix Ingredient.OPTIONAL_PACKET_CODEC not being modified to work with custom ingredients
- Fix ShapelessRecipeMixin sometimes not collecting all non-empty item stacks
- If client does not support certain custom ingredient, send CustomIngredientImpl#getCustomMatchingItems instead of dummy default (stone)
2024-12-12 15:50:54 +00:00
PepperCode1
b874120c6d
Fix block outline rendering ()
* Fix block outline rendering

- Move outline event invoker to before either normal or high contrast outlines are rendered
- Remove outline layer reset, fixing high contrast outline being rendered with wrong layer
- Pass translucent parameter to BEFORE_BLOCK_OUTLINE event
- Remove deprecated BlockOutlineContext#vertexConsumer

* Re-add deprecated BlockOutlineContext#vertexConsumer

* Add translucent block outline to context
2024-12-12 15:50:44 +00:00
modmuss
5f43f98180
Disallow records as part of public API ()
* No public API records

* Add note in contributing

* Explain why

* Fix
2024-12-12 15:50:08 +00:00
modmuss50
f906699295 Bump version 2024-12-05 20:59:04 +00:00
PepperCode1
7e7568bf89
Add SpecialBlockRendererRegistry () 2024-12-05 20:15:42 +00:00
modmuss50
efb4f0f7ed 1.21.4 2024-12-05 20:11:43 +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
Joseph Burton
453d4f91c7
Implement changes to client auto-test threading ()
* Implement changes to client auto-test threading

* Replace ThrowableRunnable and ThrowableSupplier with Apache equivalents, reintroduce MinecraftClient parameter

* Avoid undefined behavior in storing Operations

* Add check for calling MinecraftClient.getInstance() on the test thread

* Add todo for suggestion of runOnClient when API methods are added

* Rename lambda parameter from minecraft -> client
2024-12-05 20:07:32 +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
PepperCode1
7b6b22539a
Allow retrieving model loading plugins ()
* Allow retrieving model loading plugins

* Convert PreparableModelLoadingPlugin.Holder to an interface
2024-12-05 20:07:08 +00:00