Commit graph

1702 commits

Author SHA1 Message Date
Syst3ms
ad0af49c43
Change Enchantment API for data-driven enchantments (#3761)
* Modify enchantment API for new system

breaking: complete overhaul of EnchantingContext

* Incorporate changes by apple

from #3760
2024-05-10 15:13:38 +01:00
modmuss50
a5ed259db6 Bump version 2024-05-07 19:22:01 +01:00
Apollo
690fe0d575 Support loading a single resource condition instead of array (#3749)
* Support loading a single condition instead of array

* Remove extra space

* Use LIST_CODEC field instead of CODEC.listOf()

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

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit 83154f1bcb)
2024-05-07 19:06:57 +01:00
Jonathan Coates
1c4a86e83a Support extending dynamic registries in datagen (#3744)
- 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
modmuss
186cc2ef8b Don't enforce a RegistryByteBuf packet code for the extended screen handler type (#3743)
(cherry picked from commit 8c7b71c2c5)
2024-05-07 19:06:51 +01:00
modmuss
5c75478521 Add API to modify default item components (#3728)
* Add API to modify default item components

* Add test for removal

* Some review feedback

* API design changes

* Review feedback

* Add overload that takes a Collection<Item>

(cherry picked from commit 5bcea88aba)
2024-05-07 19:06:45 +01:00
Jochen Jacobs
e8b7ff012a Use knownPackInfo on mod data packs to avoid registry syncing (#3726)
* use knownPack to avoid syncing mod data packs.

* remove empty class

* checkstyle and licenses

* move debug logging from testmod into main module

* fix knownPackInfo not working for build-in data packs.

* make bundled data packs not required for client, and don't auto enable

* improve testmod with added builtin data pack + better error message

* Increase max known packs in C2S packet

* validate size before sending
* changeable with system property

* change mixin from ModifyConstant to ModifyArg to be more clear.

* Apply suggestions from code review

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

* store list of knownPacks as server start

avoids desync on pack change (since registries aren't reloaded)

* be extra safe: only request knownPacks that were enabled at server start and still are.

Doesn't rely on the fact that registries aren't synced anymore.

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
(cherry picked from commit c0e5481f61)
2024-05-07 19:06:43 +01:00
TelepathicGrunt
619abec242 Default English Translations for c namespaced tags (#3716)
* 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 (#3757)
Co-authored-by: Drex <nicknamedrex@gmail.com>
2024-05-04 14:28:29 +01:00
modmuss50
97fc76fd23 Bump version 2024-04-28 15:58:57 +01:00
apple502j
be5d88be99
Fix crash when generating flat world (#3741) 2024-04-28 15:55:49 +01:00
modmuss50
a704f5c7f5 Bump version 2024-04-26 22:16:54 +01:00
modmuss
0dca0349ce
Always get the latest ServerPlayerEntity from ServerPlayNetworkHandler (#3735) 2024-04-26 22:14:28 +01:00
modmuss50
a91819b2e0 1.20.6-rc1 2024-04-26 14:09:21 +01:00
modmuss50
d18c2535c2 Bump version 2024-04-23 21:22:24 +01:00
modmuss50
821939031a 1.20.5 2024-04-23 21:20:13 +01:00
modmuss
c5f2432cad
Implement BuiltinModResourcePackSource.equals/hashCode (#3730)
* Implement BuiltinModResourcePackSource.equals/hashCode

* Make it a record instead
2024-04-23 21:19:36 +01:00
modmuss50
ce4249dddc Bump version 2024-04-21 16:38:34 +01:00
TelepathicGrunt
2b43c5c8df
Powder Snow Bucket tag, defense enchantment tag name fix, missing meat tag entry (#3727)
* Multiple tag fixes

* Make the tag rename not breaking
2024-04-21 16:35:27 +01:00
apple502j
b82b23921c
Add GameTests for Content Registries (#3710)
* Add more GameTests

* fix and add more

* Increase tickLimit

* hopefully this fixes it

* whoops
2024-04-21 16:35:10 +01:00
modmuss50
060522124d Bump version 2024-04-20 11:32:11 +01:00
modmuss
f1240ba7db
Test for and fix registries that need syncing (#3723)
* Test for and fix registries that need syncing

* Fix duplicate
2024-04-20 11:28:54 +01:00
apple502j
76551cf623
Rebuild indexed features during biome modification (#3722) 2024-04-20 11:28:40 +01:00
modmuss
7f0e1106e7
Add an ore to the biome test mod (#3721) 2024-04-20 11:28:32 +01:00
TelepathicGrunt
7ba3e3b760
Fix backwards compat for c:strings tag (#3720) 2024-04-20 11:28:21 +01:00
modmuss50
166f144fc9 1.20.5-rc2 2024-04-19 15:11:52 +01:00
modmuss50
fc5276a561 Bump version 2024-04-17 18:11:58 +01:00
modmuss50
231d328d32 1.20.5-pre4 2024-04-17 18:09:40 +01:00
TelepathicGrunt
276a811b29
Remove false legacy tag warning (#3717)
* Remove false legacy tag warning

* Unused import
2024-04-17 17:55:23 +01:00
apple502j
17e985d676
Fix ItemTooltipCallback crash (#3718) 2024-04-17 17:54:48 +01:00
Nathan
9479391359
Fix changeDimensions not using TeleportTarget.pitch (#3707) 2024-04-17 17:54:39 +01:00
modmuss50
e5abbac34b Bump version 2024-04-16 18:14:39 +01:00
TelepathicGrunt
7f945d5bb6
Refactor convention tags (#3310) 2024-04-16 18:01:57 +01:00
modmuss50
18de49c6d7 Specify loadDataPacks desc 2024-04-16 17:14:03 +01:00
modmuss50
b2a1ac47de 1.20.5-pre3 2024-04-16 15:17:20 +01:00
modmuss50
2a2c66b625 1.20.5-pre2 fixes 2024-04-15 17:01:26 +01:00
modmuss50
d4f1273d0b 1.20.5-pre2 2024-04-15 16:29:01 +01:00
modmuss50
cfb0a2d3d2 Bump version 2024-04-14 13:40:56 +01:00
apple502j
c5fc38b3f7
Finish port to 1.20.5-pre1 (#3706)
* 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
Syst3ms
8f5205a8a1
Enchantment API (#3627)
* ALLOW_ENCHANTING event

* Intrinsic enchantments + testmod

also fixed a bug in the testmod that prevented the custom damage handler from ever working

* Item-based override mechanism

* Replaces part of the use cases of the event with a convenient method to override in FabricItem.
* Updated and tested the testmod.

* javadoc

* Move event logic to FabricItemStack

* oops

* Simplify mixin

* Replace ActionResult with TriState

* Use TriState in testmod

* requests

* Clarify jdoc

* Ship without intrinsic enchantments at first

* Checkstyle

* Checkstyle

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-04-10 23:02:11 +01:00
modmuss50
6793dde117 Fix EntityType.Builder for 1.20.5 2024-04-10 22:24:01 +01:00
modmuss
44e6689f3c Deprecate FabricEntityTypeBuilder & FabricBlockEntityTypeBuilder in favour of the vanilla classes (#3677)
* Replace FabricEntityTypeBuilder with EntityTypeBuilder + iface injection

* Finish and test entity type builder

* Deprecate FabricBlockEntityTypeBuilder

* Review fix

* Fixes based on review

* Some fixes

* Checkstyle
2024-04-10 22:18:43 +01:00
ToBinio
d73f365284 Fix links in transfer-api README.md (#3694) 2024-04-10 22:17:45 +01:00
Fabric Bot
aae0949a31 Translation updates (#3618)
* New translations en_us.json (Korean)

* New translations en_us.json (Vietnamese)

* New translations en_us.json (Korean)

* New translations en_us.json (Korean)

* New translations en_us.json (Vietnamese)

* New translations en_us.json (Korean)

* New translations en_us.json (Portuguese, Brazilian)

* New translations en_us.json (French)

* New translations en_us.json (Portuguese, Brazilian)

* New translations en_us.json (Estonian)

* New translations en_us.json (Malay)

* New translations en_us.json (Malay)

* New translations en_us.json (Malay)

* New translations en_us.json (German)

* New translations en_us.json (Czech)

* New translations en_us.json (Chinese Simplified)

* New translations en_us.json (Chinese Simplified)

* New translations en_us.json (Spanish, Chile)

* New translations en_us.json (Spanish, Chile)

* New translations en_us.json (Spanish, Chile)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Chinese Traditional)

* New translations en_us.json (Polish)

* New translations en_us.json (Toki Pona)

* New translations en_us.json (Toki Pona)
2024-04-10 22:17:25 +01:00
modmuss
74e2f560d5
1.20.5-pre1 (#3700)
* 1.20.5-pre1

* BrewingRecipeRegistryBuilderCallback

* Remove debug line

* Fix build

* Bump version
2024-04-10 19:02:33 +01:00
apple502j
3b6dc5deb2
[1.20.5] Codec-based Resource Conditions and refactors (#3690)
* 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
modmuss50
9d8968f5a3 Fix release by reverting a change in 3844af0a25 2024-04-03 15:53:47 +01:00
modmuss50
e7bca6936e Actually run resources tests on Java 21 2024-04-03 15:50:07 +01:00
modmuss50
a0ecfaec3e Run client and resources tests on Java 21 2024-04-03 15:48:30 +01:00
modmuss50
f1e646e4d5 24w14a & Java 21 2024-04-03 15:46:52 +01:00