Commit graph

1533 commits

Author SHA1 Message Date
apple502j
7cef2bbfdf Networking: introduce packet-object based API
Signed-off-by: modmuss50 <modmuss50@gmail.com>
2023-04-04 12:56:41 +01:00
modmuss50
848ffaabb4 23w13a 2023-03-29 16:07:13 +01:00
modmuss50
b09c81ea46 Fix build by removing old AW 2023-03-22 17:10:28 +00:00
modmuss50
d537279b82 23w12a 2023-03-22 17:01:08 +00:00
modmuss50
88da797301 Bump version 2023-03-15 12:29:56 +00:00
Julian Burner
938a1d5673
Support Programmer Art and High Contrast injections (#2960) 2023-03-15 12:01:00 +00:00
RawDiamondMC
9af20fd751
Create zh_cn.json (#2945) 2023-03-15 10:33:56 +00:00
Alpha
930b8d421f
Update ko_kr.json (#2927) (#2941)
* Update ko_kr.json

* fix typo
2023-03-15 10:33:35 +00:00
Amirhan-Taipovjan-Greatest-I
043f9acfad
Tatar Translation for Fabric API. (#2936)
* Tatar Translation for 1.19.4

* Tatar Translations for 1.19.4
2023-03-15 10:33:10 +00:00
Michael
9a7c5daa43 Add 'Windswept Hills' biome convention tag (#2878)
* add windswept biome tag

* change windswept tag to windswept hills

* list out biomes and revert name change

(cherry picked from commit 1b664772cf)
2023-03-15 09:36:09 +00:00
Madis Otenurm
7ca91b72e1 Update et_ee.json (#2894)
(cherry picked from commit 09aba064e4)
2023-03-15 09:24:52 +00:00
Yoosk
36d2fcce10
Update pl_pl.json (#2929) 2023-03-15 09:24:06 +00:00
Technici4n
ca5f59aa6b
Fix custom packet inside of bundled packet not being processed (#2947) 2023-03-15 09:20:48 +00:00
Maity
315602f6c2
Conventional Biome Tags tweaks (#2955)
* Birch Forest Tag #2330

* Fix #2649

* Run datagen
2023-03-15 09:19:29 +00:00
Juuz
8f87821716 Add registry for core shaders in custom namespaces (#2901)
* Add registry for core shaders in custom namespaces

* Apply suggestions from code review

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

* Use Identifier.NAMESPACE_SEPARATOR instead of ":"

* Remove fabric_ prefixes from mixins

* Move test rendering to lower-right corner for test screenshots

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit ad177755a6)
2023-03-15 09:16:02 +00:00
Juuz
09a3510c69
EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot (#2935) 2023-03-15 09:14:00 +00:00
TelepathicGrunt
348a9c6486
Fixed end biome source injection (#2940) 2023-03-15 09:13:42 +00:00
modmuss50
b8ac354064 1.19.4 2023-03-14 18:32:37 +00:00
modmuss50
7d882bf219 1.19.4-pre4 2023-03-08 14:52:28 +00:00
modmuss50
8c25edb404 Fix some ScreenEvents not being called after resizing the window.
1.19.4 specific issue, fixes #2950
2023-03-07 16:15:00 +00:00
modmuss50
4626a20621 Bump version 2023-03-01 13:22:26 +00:00
modmuss50
4e68ac5bb4 Fix rendering issues after visiting the disconnected screen.
Fixes #2944
2023-03-01 13:20:54 +00:00
modmuss50
fe9afa9d57 Fix build 2023-02-27 18:17:54 +00:00
modmuss50
9003cbe9c4 1.19.4-pre2
Just mapping updates
2023-02-27 16:56:40 +00:00
modmuss50
0abf393c29 Bump version 2023-02-24 10:05:50 +00:00
Technici4n
c2e6f67424
Fix #2925: deprecate item functions in BlockRenderLayerMap (#2930) 2023-02-24 09:50:39 +00:00
modmuss50
931a05409c Bump version 2023-02-23 12:59:11 +00:00
Shnupbups
6baaf9719b
Deprecate some conventional tool tags added to vanilla (#2928)
* Deprecate some conventional tool tags added to vanilla

For backwards compatibility, the old tag IDs are added to the vanilla ones. The exposed keys are redirected to their replacements.

Also optionally adds Cherry Grove biome to `c:in_overworld`.

* Keep the convention tags, just deprecated

* You saw nothing
2023-02-23 12:00:19 +00:00
Kevin
1ee8be400a Added Client Message Events (#2646)
* Added Client Message Events

* Applied suggestions and fixed checkstyle

* Inject before fabric-command-api and updated Javadocs

* Updated Javadocs regarding client commands

* Update fabric-message-api-v1/src/client/resources/fabric-message-api-v1.client.mixins.json

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

* Updated Javadocs regarding commands

* Fixed duplicated package names

* Updated ClientMessageEvents.java Javadoc

Co-authored-by: Sideroo <109681866+Sideroo@users.noreply.github.com>

* Removed duplicated client commands Javadoc

* Added cancelled sending and receiving events

* Seperated send and receive events and changed event names

* Fixed checkstyle

* Added support for modifying messages

* Added client command test

* Added narration and message indicator support for modifying received messages

* Added tests for modifying messages

* Updated ClientReceiveMessageEvents#CHAT Javadocs

* Small Javadoc fixes

* Added Modify to names

* Always narrate original message

* Removed modifying receive chat message

* Split notify and modify events

* Fixed checkstyle

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Sideroo <109681866+Sideroo@users.noreply.github.com>
(cherry picked from commit c85585f870)
2023-02-23 10:15:16 +00:00
PepperCode1
81e8c5765a Indigo shade related fixes and other changes (#2898)
* Apply disabled shade from vanilla quads directly to material

- Remove QuadViewImpl.shade

* Fix enhanced AO calculation and respect non-terrain culling state

- Fix AoCalculator using AO face data computed with a potentially different shade state
- Move non-cached computation code to separate method in AoCalculator
- Turn AoCalculator's brightnessFunc and aoFunc into abstract methods
- Do not check null check world in non-terrain AO calculation since it cannot be null
- Pass through lightFace and shade state as method arguments in AoCalculator methods to prevent additional lookups
- Do not check for the axis aligned flag in AbstractQuadRenderer.shadeFlatQuad
- Respect cull parameter passed to non-terrain rendering by merging TerrainBlockRenderInfo into BlockRenderInfo
- Use reusable search pos when calling Block.shouldDrawSide to prevent additional BlockPos allocation
- Change BlockRenderContext.render and TerrainRenderContext.tessellateBlock to return void since return value is no longer used
- Remove QuadViewImpl.vertexStart since it is unused

* Add suggestions

- Mark Direction parameter to BlockRenderInfo.shouldDrawFace as Nullable
- Reuse MaterialFinder in FrameBakedModel

(cherry picked from commit 3a95925af4)
2023-02-23 10:15:13 +00:00
modmuss50
a383ab9763 Support creating FabricRegistryBuilder with a RegistryKey, deprecate Class based APIs. (#2905)
* Fix #846

* Update javadoc.

(cherry picked from commit f7b4d36421)
2023-02-23 10:15:09 +00:00
Technici4n
e7471eb7e4
Transfer API v3: Allow null directions, remove deprecated exactView override (#2909) 2023-02-23 10:12:57 +00:00
modmuss50
5da15ca1b9 1.19.4-pre1 2023-02-22 19:56:50 +00:00
Madis Otenurm
711cde8a2a
Add a localization string to default Fabric API resource pack (#2906)
* Update FabricModResourcePack.java

* Update en_us.json

* Update et_ee.json

* Use the newer method

* Fallback as a variable
2023-02-22 12:54:59 +00:00
modmuss50
ae0966baae
Fix all valid Mixin AP warnings. (#2914) 2023-02-22 12:54:50 +00:00
Shnupbups
63b515f4db
BlockSetTypeRegistry and WoodTypeRegistry (#2916)
* BlockSetTypeRegistry and WoodTypeRegistry

Adds `BlockSetTypeRegistry` for creating `BlockSetType`s using Identifiers.
Also adds `WoodTypeRegistry` to replace `SignTypeRegistry`, matching the new more accurate Yarn name. The old `SignTypeRegistry` remains as deprecated for compatibility.

Also updates Yarn build.

* Delete SignTypeRegistry.java

Broke in the update anyway, no use keeping it

* Suggestions

* Whoops

* Suggestions
2023-02-22 12:54:42 +00:00
modmuss50
9ff28bce11 Fix build 2023-02-15 20:15:06 +00:00
modmuss50
e45f7c6532 23w07a 2023-02-15 19:54:58 +00:00
modmuss50
fefb8dfc55 Bump versions 2023-02-13 11:10:26 +00:00
modmuss50
6752791afe Add github action to check that all resources are generated. (#2877)
* Add github action to check that all resources are generated.

* Test

* Revert "Test"

This reverts commit 8e187bc781.

(cherry picked from commit 40dc7a94f6)
2023-02-13 09:33:55 +00:00
qouteall
7f87f8fa9b Fix cannot load world after uninstalling dimension mod/datapack without breaking world presets. (#2856)
* Fix the issue that cannot load world after uninstalling a dimension mod/datapack, by making deserialization fail-soft, instead of removing non-vanilla dimensions.

* Fix style.

* Fix license.

* Small changes to FailSoftMapCodec.

* Make FailSoftMapCodec final.

* Revert "Make FailSoftMapCodec final."

This reverts commit 0c0642a1c4.

* Use ModifyVariable and change comments.

* Remove unnecessary `equals`

(cherry picked from commit 00a2eb1095)
2023-02-13 09:33:51 +00:00
Technici4n
e6c7d4eea9 Resource Conditions Additions (#2821)
* Resource Conditions Additions

- Add `registry_contains` condition. Closes #2548.
- Make `fabric:load_conditions` appear first in generated JSON objects.
- Uniformize implementation a bit.

* Update fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/mixin/resource/conditions/DataProviderMixin.java

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

* itemsLoaded -> itemsRegistered

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit e63306e015)
2023-02-13 09:33:49 +00:00
apple502j
28c7be2139 GameTest: Improve structure loading (#2801)
* GameTest: improve structure loading

* Address issues

* Re-run actions

* Test missing template

* Revert "Test missing template"

This reverts commit 0e7189bf73.

* Update fabric-gametest-api-v1/src/main/java/net/fabricmc/fabric/mixin/gametest/StructureTemplateManagerMixin.java

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

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit 2ff127f537)
2023-02-13 09:33:46 +00:00
modmuss50
57338cbe24 23w06a 2023-02-08 17:54:34 +00:00
modmuss50
2590abe7d3 Bump version 2023-02-04 14:20:23 +00:00
modmuss50
c477957e8d
[1.19.4] Fail hard when unable to register key bindings, and update Loader. (#2880)
Improve networking API test keybindings.
2023-02-04 14:17:31 +00:00
modmuss50
12a6ba2c15 23w05a 2023-02-01 16:35:59 +00:00
modmuss50
29d0689b28 Bump versions 2023-01-31 10:28:45 +00:00
modmuss50
28efac3df2 Fix vanilla behaviour change causing Dragon Breath's to leave an empty Glass Bottle in Brewing Stand (#2874)
This fix restores the previouslly broken behaviour of item remainders in brewing stands.

(cherry picked from commit 312c329484)
2023-01-31 10:20:25 +00:00
BasiqueEvangelist
ae26bc3563 Fix memory leak by using weak set for ArrayBackedEvent list (#2848)
* use weak set for array backed events list

* use thread safe map

(cherry picked from commit 70be179cf3)
2023-01-31 09:53:34 +00:00