Commit graph

1949 commits

Author SHA1 Message Date
modmuss
5cbce673b6
Initial 25w07a port ()
* Initial 25w07a port

* Bump version
2025-02-13 19:40:46 +00:00
modmuss
0eb0bee996 Fix incorrect HUD z index for sub layers ()
Fixes 

(cherry picked from commit 0d31b09f50)
2025-02-11 16:45:56 +00:00
modmuss50
d7836b8d3e Bump version 2025-02-09 14:27:14 +00:00
modmuss
3459fc6192 Use page up/down to change creative inventory pages. ()
* Use page up/down to change creative inventory pages.

* Swap keys

(cherry picked from commit fcb960140c)
2025-02-09 13:39:31 +00:00
Kevin
a3630f92b3 Add Hud Render Events ()
* Add HudRenderEvents

* Add HudRenderEventsTests and deprecate HudRenderCallback

* Update tests

* Add client parameter and apply suggestions

* Split HudRenderEvents into separate interfaces

* Fix before chat and last

* Add after sleep overlay event and update after main hud injection point

* Add comments for injection points

* Revert splitting HudRenderEvents into separate interfaces

* Use vanilla layered drawer layer interface

* Cleanup InGameHudMixin

* POC of hud modification

* Implement HudLayerRegistrationCallback

* Delete HudRenderEvents

* Fix sub drawers and add basic documentation

* Fix checkstyle

* Apply suggestions from code review

* Add Javadocs

* Add more unit tests

* Apply suggestions from code review
- Update Javadocs
- Remove vanilla sub drawer flattening
- Improve LayeredDrawerWrapperImpl internals

* Javadoc oddities

* Add client gametests

* Finish client gametests

* Change method and add documentation

* Ensure test environment is correct

* Move test class to same package

* Add render condition for tests

* Fix merge conflicts

* Update javadocs

* Small bug fixes, documentation, and sub drawer tests

* Update javadocs some more

* Add contract and get around return value not used warnings

* Apply suggestions from code review

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

* Migrate AtomicBoolean to MutableBoolean

* Update javadocs on render condition

* Use ListIterator#set

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit 44a0820dd2)
2025-02-09 13:27:01 +00:00
PepperCode1
19c9635598 Add UnbakedModelDeserializer ()
* Add UnbakedModelDeserializer

* Document UnbakedModelDeserializer

* Allow custom model types to be optional

* Update javadoc as per suggestion

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

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit ae237235d8)
2025-02-09 13:26:58 +00:00
Juuz
93c53b9609 Rename "data" and "network" codecs to "server" and "client" codecs ()
The sided names avoid confusing modders into thinking that the client codec
is only used for syncing since it also reads data pack contents.

(cherry picked from commit 742bac29fb)
2025-02-09 13:26:56 +00:00
Patbox
7bf8da8212 Add a method for overriding modelId in item settings. ()
* Add method for overriding modelId in item settings

* Fix checkstyle

(cherry picked from commit 42f2d2ba6c)
2025-02-09 13:26:53 +00:00
Matthew Periut
2519e479bd Change Creative Buttons Texture ()
(cherry picked from commit a1daf2410f)
2025-02-09 13:26:51 +00:00
modmuss
c0451ac958
Fixes to the rendering test mods ()
* Fixes to the rendering test mods

* Fix
2025-02-09 13:13:15 +00:00
modmuss
52a0a3850a
Port to 25w06a ()
* Port to 25w06a

* Bump version
2025-02-05 18:40:41 +00:00
modmuss50
4d6a78a820 Bump version 2025-01-29 18:57:00 +00:00
modmuss50
2dd063df02 25w05a 2025-01-29 18:53:36 +00:00
Fabric Bot
9eb1c5c7a2 New Translation updates ()
* New translations en_us.json (Ukrainian)

* New translations en_us.json (German)

* New translations en_us.json (Italian)

* New translations en_us.json (Ukrainian)

* New translations en_us.json (Ukrainian)

* New translations en_us.json (Greek)

* New translations en_us.json (Greek)

(cherry picked from commit e359e316fb)
2025-01-29 10:49:56 +00:00
Joseph Burton
20e992bd4f Client gametest cleanup ()
* Organize packages

* Move all gametest system properties into one class where we won't lose them

* Add references to loom helpers to documentation in relevant places

(cherry picked from commit 2d7e411e9b)
2025-01-29 10:49:54 +00:00
AViewFromTheTop
4aeee1c3f3 Fix Client Registry Remapping Only Remapping One Registry ()
* WW DEBUG

Revert "apple log"

This reverts commit e3ba09c109a92f2cde401c0fbea8648b628c5452.

Possible Fix

apple log

Update RemapStateImpl.java

Revert "WW DEBUG"

This reverts commit 3f2ffa9272163c6640218b2fa72d36165b4b4bda.

* Fix Client Registry Remapping Only Remapping One Registry

* Add unit test

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 4ba56ac745)
2025-01-29 10:49:52 +00:00
modmuss50
eae0ba9f49 25w04a 2025-01-22 16:10:50 +00:00
modmuss50
450ef60e28 Bump version 2025-01-21 19:07:05 +00:00
modmuss
ed3fbe03b3 Add pale oak to fence/fence gate tags ()
(cherry picked from commit 2f1398f1d2)
2025-01-21 18:52:51 +00:00
modmuss
73a52b4b18
25w03a game tests ()
* 25w03a game tests

* Cleanup and improvements

* Update fabric-gametest-api-v1/src/main/java/net/fabricmc/fabric/impl/gametest/TestAnnotationLocator.java

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

* Use an 8x8 empty structure by default

* Use a dedicated RegistryLoaderMixin instead of hacking around registry sync's api

* Fix

* Checkstyle

---------

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
2025-01-21 18:50:26 +00:00
modmuss
bcdf965b28
Fix ServerEntityWorldChangeEvents.AFTER_ENTITY_CHANGE_WORLD being called for entities teleporting within the same world. () 2025-01-21 18:47:39 +00:00
modmuss
7e31339eff
Fix syncing block entity attachments on load. ()
* Fix syncing block entity attachments on load.

Closes 

* Return success
2025-01-21 18:47:31 +00:00
TelepathicGrunt
64d717a0a1 Add tagkey for c:tools/wrench ()
Addresses https://github.com/FabricMC/fabric/issues/4376

(cherry picked from commit 53ee34a43b)
2025-01-21 18:34:42 +00:00
Fabric Bot
3cfb61e50b New Translation updates ()
* New translations en_us.json (Korean)

* New translations en_us.json (Ukrainian)

* New translations en_us.json (German)

* New translations en_us.json (Italian)

* New translations en_us.json (French)

* New translations en_us.json (Chinese Simplified)

* New translations en_us.json (French)

* New translations en_us.json (Spanish)

* New translations en_us.json (Czech)

* New translations en_us.json (German)

* New translations en_us.json (Finnish)

* New translations en_us.json (Italian)

* New translations en_us.json (Japanese)

* New translations en_us.json (Korean)

* New translations en_us.json (Dutch)

* New translations en_us.json (Polish)

* New translations en_us.json (Russian)

* New translations en_us.json (Turkish)

* New translations en_us.json (Ukrainian)

* New translations en_us.json (Chinese Simplified)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Vietnamese)

* New translations en_us.json (Icelandic)

* New translations en_us.json (Portuguese, Brazilian)

* New translations en_us.json (Spanish, Chile)

* New translations en_us.json (Estonian)

* New translations en_us.json (Malay)

* New translations en_us.json (French, Canada)

* New translations en_us.json (Tatar)

* New translations en_us.json (Malay (Jawi))

* New translations en_us.json (French)

* New translations en_us.json (Spanish)

* New translations en_us.json (Bulgarian)

* New translations en_us.json (German)

* New translations en_us.json (Greek)

* New translations en_us.json (Finnish)

* New translations en_us.json (Italian)

* New translations en_us.json (Japanese)

* New translations en_us.json (Korean)

* New translations en_us.json (Dutch)

* New translations en_us.json (Polish)

* New translations en_us.json (Russian)

* New translations en_us.json (Swedish)

* New translations en_us.json (Turkish)

* New translations en_us.json (Ukrainian)

* New translations en_us.json (Chinese Simplified)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Vietnamese)

* New translations en_us.json (Icelandic)

* New translations en_us.json (Portuguese, Brazilian)

* New translations en_us.json (Persian)

* New translations en_us.json (Spanish, Chile)

* New translations en_us.json (Spanish, Mexico)

* New translations en_us.json (Estonian)

* New translations en_us.json (Malay)

* New translations en_us.json (French, Canada)

* New translations en_us.json (Esperanto)

* New translations en_us.json (Tatar)

* New translations en_us.json (Malay (Jawi))

* New translations en_us.json (Toki Pona)

* New translations en_us.json (Finnish)

* New translations en_us.json (Ukrainian)

* New translations en_us.json (Silesian)

* New translations en_us.json (Estonian)

(cherry picked from commit 9a56a7cd16)
2025-01-21 18:34:40 +00:00
Joseph Burton
6d1fcc834f Client gametest screenshot comparison API ()
* Add screenshot comparison API

* Cleanup and docs

* Remove no-longer-needed changes to access widener

(cherry picked from commit a069796ec9)
2025-01-21 18:34:38 +00:00
Cassian Godsted
6dcc9e7bb6 Add a seed tag for Pitcher Pods ()
(cherry picked from commit 22636d9c1a)
2025-01-21 18:34:36 +00:00
modmuss
c327076adb
Update to 25w03a ()
* Update to 25w03a

* Bump version
2025-01-15 18:34:20 +00:00
modmuss50
3f161dddc9 Bump version 2025-01-14 14:25:55 +00:00
Syst3ms
97c1b82da2 Fix attachment sync when changing world + migrate to client gametest ()
* Rework testmod into client gametest

* Fix broken mixin

ClientPlayNetworkHandlerMixin silently broke due to targeting an instruction that changed from being unconditional to inside of a branch

* spotless

* Review feedback

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 314f4e45e2)
2025-01-14 14:10:02 +00:00
Octol1ttle
cb3101de6a Adjust when the EntityTrackingEvents are fired. ()
* fix EntityTrackingEvents at once

* use event in Attachment Sync API

* fix: remove removed mixin from mixins.json

(cherry picked from commit 89981351cc)
2025-01-14 14:09:38 +00:00
Joseph Burton
efd8abe398 Wait for server to start in WorldBuilder.createServer ()
* Wait for server to start in WorldBuilder.createServer

* Wait for serverCanAcceptTasks

(cherry picked from commit 20da2796f0)
2025-01-14 14:09:36 +00:00
modmuss
0b371b50a0 Fix focus script to always include "fabric-client-gametest-api-v1" ()
* Fix focus script to always include "fabric-client-gametest-api-v1"

* Fix comment

(cherry picked from commit 6aa3fa3b24)
2025-01-14 14:09:34 +00:00
Joseph Burton
c5f09f3952 Add waitTick built-in to pressKey and pressMouse ()
(cherry picked from commit 5f21acd061)
2025-01-14 14:09:32 +00:00
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