Commit graph

51 commits

Author SHA1 Message Date
Patbox
052a85d03d Add getAllMatches and getAllOfType method to ServerRecipeManager ()
* Add getAllMatches and getAllOfType method to ServerRecipeManager

* Throw exception in default interface implementation, fix license missing

(cherry picked from commit 640e77ae59)
2025-02-15 14:38:52 +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
c327076adb
Update to 25w03a ()
* Update to 25w03a

* Bump version
2025-01-15 18:34:20 +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
haykam821
339ab8c477
Fix available stonecutting recipe recalculation not being stack-aware ()
Fixes 
2025-01-07 18:28:55 +00:00
modmuss50
9ceeb58c7d Fix build
Remove ClientCustomIngredientSyncTests as its fundamentally incompatible with 1.21.4
2024-12-30 13:37:58 +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
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
fa62a02383
Fix custom ingredient implementation ()
- Override isEmpty in CustomIngredientImpl
- Override acceptsItem in CustomIngredientImpl
- Override equals and hashCode in CustomIngredientImpl so CustomIngredients can also implement them
  - Adjust the class doc of CustomIngredient to encourage implementors to do so
- Implement Ingredient#hashCode
- Remove incorrect Nullable annotation from ItemStack parameter in CustomIngredientImpl#test
- Implement equals and hashCode on all builtin custom ingredient classes
2024-12-05 20:07:00 +00:00
modmuss50
203e6b2369 24w46a 2024-11-13 18:31:05 +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
modmuss
6eee591dd4
Rename CustomIngredient.getMatchingStacks & add CustomIngredient.toDisplay ()
* Add CustomIngredient.toDisplay

* Imports

* Rename to match yarn.
2024-10-11 15:15:12 +01:00
haykam821
c811259261
Update mod to Minecraft 1.21.2 pre-release 3 () 2024-10-11 15:02:38 +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
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
01f3a03986
24w34a porting fixes ()
* Fix elytra events not working

* Add note on paused dedicated server

* Add note on thrown tridents in `CustomDamageHandler`

Thrown tridents are handled in a different method to ensure they do not break after
successful use (you cannot throw tridents that are almost broken). To make the API simple
(as you cannot use this with vanilla items anyway), exclude them from coverage.

* Fix javadoc in VillagerInteractionRegistries

* Fix javadoc
2024-08-26 12:02:31 +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
650897126b
Fix ComponentsIngredient's getMatchingStacks() not applying the component changes. () 2024-06-25 18:14:36 +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
modmuss
0af3f5a702
24w18a ()
Co-authored-by: Drex <nicknamedrex@gmail.com>
2024-05-04 14:28:29 +01:00
apple502j
c5fc38b3f7
Finish port to 1.20.5-pre1 ()
* Buildscript changes

* Particle API: port and some refactor

* Add support for Ingredient in FabricBrewingRecipeRegistry

* Add private ctor to ClientPlayerBlockBreakEvents

Not related to port, but something I've found during the process.
Also adds final to CommonLifecycleEvents.

* Fix Sound API testmod

* Fix broken javadocs

* Codec-related changes

* Document behavior of SUCCESS_NO_ITEM_USED in UseEntityCallback

* Add getEnabledFeatures

* checkstyle
2024-04-14 13:26:09 +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
f628d01844
[1.20.5] Add back custom data ingredient ()
* [1.20.5] Add back custom data ingredient

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-03-12 10:31:21 +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
modmuss
1172e89799
24w09a ()
* In game

* More fixes

* Small fixes + changes

* Rename

* Fix test
2024-02-29 19:16:35 +00:00
modmuss
7b70ea8a7a
Port to 24w03b ()
* Deprecate FabricBlockSettings

* Deprecate FabricItemSettings

* Start on 24w03a

* Main menu :)

* Update mappings

* PayloadTypeRegistry

* Networking part 2 of many

* Networking part 3 of many

* Networking part 4 of many

* Recipe api

* Port Item API to 1.20.5

* Is this even right?

* Port FabricParticleTypes to 1.20.5

* Remove redundant fuel caching logic

* Remove fabric-containers-v0, deprecated since 2020

* Regsync work

* Adapt screen handler to new networking

* Update yarn + more work

* More mapping updates

* Compile fixes

* Checkstyle + small fixes

* Single and multiplayer fixes

* Handle play packets on main thread.

* Update mappings

* Even more networking

* Networking tests

* Fix todo's

* Update javadocs

* Networking API improvements

* Some small regsync refactors

* Fix handling of null NBT in NbtIngredient

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/block/FabricBlockSettings.java

Co-authored-by: ErrorCraft <51973682+ErrorCraft@users.noreply.github.com>

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/block/FabricBlockSettings.java

Co-authored-by: ErrorCraft <51973682+ErrorCraft@users.noreply.github.com>

* Add context objects

* ChannelInfoHolder.getPendingChannelsNames -> fabric_getPendingChannelsNames

* Fix crash

* send `c:register` packet for play phase instead of config ()

* Bump version

---------

Co-authored-by: ErrorCraft <51973682+ErrorCraft@users.noreply.github.com>
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: Drex <nicknamedrex@gmail.com>
Co-authored-by: deirn <deirn@bai.lol>
2024-01-22 18:24:37 +00:00
modmuss50
80f8cf516f Update Fabric Loader 2024-01-17 17:15:38 +00:00
modmuss
3434862fbd
Port to 23w51b ()
Breaking changes:

- `FabricBrewingRecipeRegistry.registerPotionRecipe` takes `RegistryEntry<Potion>` instead of `Potion`
- `SculkSensorFrequencyRegistry.regster` takes `RegistryKey<GameEvent>` instead of `GameEvent`
- `FabricLanguageProvider.add` takes `RegistryEntry<EntityAttribute>` instead of `EntityAttribute`
- `FabricTagProvider.GameEventTagProvider` was removed replace with `FabricTagProvider<GameEvent>`
- `FabricItem.getAttributeModifiers` returns a Multimap with a key of `RegistryEntry<EntityAttribute>` instead of `EntityAttribute`
- `ModifyItemAttributeModifiersCallback.modifyAttributeModifiers` takes Multimap with a key of `RegistryEntry<EntityAttribute>` instead of `EntityAttribute`
2023-12-18 18:47:42 +00:00
modmuss
78d798af9d
Update to loader 0.15 () 2023-12-08 15:19:17 +00:00
modmuss50
23e8616e74 23w45a 2023-11-08 16:26:36 +00:00
Technici4n
6ed720cee5
Fix custom ingredient serialization with allowEmpty ()
* Fix custom ingredient serialization with allowEmpty

* Remove custom First codec

* Fix checkstyle
2023-11-02 10:33:44 +00:00
modmuss
9468a19de0
Configure spotless for imports, sort imports. ()
* Configure spotless to also do imports. Allows for auto applying.

* Order imports
2023-10-22 13:35:58 +01:00
apple502j
9650955252
Document the getCodec method ()
* Document the getCodec method

* Update fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/api/recipe/v1/ingredient/CustomIngredientSerializer.java
2023-10-01 12:36:57 +01:00
modmuss50
435112151c 1.20.2-pre1 2023-09-05 16:31:02 +01:00
modmuss
fce67b32cf
23w35a () 2023-08-31 12:50:38 +01:00
modmuss
0b2eb405dc
[1.20.2] Support common registration packets. Add configuration task API ()
* Config networking refactor :)

* Add some unit tests for common packets.

* write FabricPacket on network thread.
Split ServerConfigurationConnectionEvents into two.

* Fixes

* Rename event

* Add a testmod + ssome docs

* Improve registry sync fixing deadlock in a number of cases.

* Cleanup channel events.

* Review feedback and fixes.
2023-08-09 16:30:51 +01:00
modmuss
86b12645b9
23w31a 2023-08-07 09:09:38 +01:00
modmuss
f4b7e42468
Update to loom 1.3 and use Mod Publish Plugin ()
* Update to loom 1.3

* Fix more 1.3 deprecations

* Opps

* Move to mod publish plugin

* Revert some changes

* Fix some more Gradle deprecations

* Fix names

* Remove extra stuff

* Cleanup
2023-08-02 18:51:21 +01:00
modmuss
b3afc78b68
Setup unit tests & format gradle files. () 2023-05-30 13:07:11 +01:00
modmuss50
df34a27454 1.20-pre6 2023-05-25 14:26:11 +01:00
modmuss50
63e9e1806d 1.20-pre3
- Only mapping updates.
2023-05-19 13:34:23 +01:00
modmuss50
b04edc7ab9 1.20-pre2 2023-05-16 15:36:50 +01:00
modmuss50
03ef495b7f 1.20-pre1 2023-05-10 14:51:08 +01:00
modmuss50
a1ccd7bfed 23w04a 2023-01-24 16:59:43 +00:00
modmuss50
b69ba7fabe
23w03a ()
* First look at 223w03a

* Fix login

* Support onboarding screen in client tests

* Fix AFTER_ENTITY_CHANGE_WORLD event

* Bump version
2023-01-18 21:21:41 +00:00