Commit graph

1761 commits

Author SHA1 Message Date
modmuss
b9828ba31a
No longer allow unused registry ids when syncing. (#3792)
* No longer allow unused registry ids when syncing.

* Freeze registries much sooner after mod init
2024-05-29 15:31:39 +01:00
modmuss
6573ed8ccc
24w21b (#3789)
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
apple502j
0684cd12de
Finish port to 24w20a (#3777)
* [BREAKING] pass entity to EquipmentSlotProvider

* Improve mixin for chunk unload event

* `TestContext#getBlockEntity` result can be used without checks/casts now

* Fix typos
2024-05-23 09:06:12 +01:00
modmuss50
3c207badd1 Bump version 2024-05-20 09:42:20 +01:00
Jonathan Coates
7081616045 Registry resource conditions (#3752)
* Add resource conditions to dynamic registries

* Support conditions in FabricDynamicRegistryProvider

 - Add matching overloads for all add(...) methods which take a varargs
   list of ResourceConditions.

 - Add an additional overload for registering RegistryEntry.References
   directly. This makes it a little easier to register directly from a
   RegistryBuilder.

* Throw error if we cannot add resource conditions

* Rename EntryWithConditions to ConditionalEntry

(cherry picked from commit a5d5299dfb)
2024-05-20 09:33:44 +01:00
Kevin
fc3f06ac9e Fix ClientMessageEvents Injection Points (#3778)
(cherry picked from commit a7dc0e41c4)
2024-05-20 09:33:41 +01:00
apple502j
5b61bd2784
Fix non-player handling in CustomDamageHandler (#3781) 2024-05-20 09:31:00 +01:00
modmuss
e633f8839b
Port to 24w20a (#3772)
* Port to 24w20a

* Update yarn

* Fix TODOs

* Bump version

---------

Co-authored-by: Drex <nicknamedrex@gmail.com>
2024-05-16 18:47:15 +01:00
modmuss50
5e47b9cbbd 24w19b 2024-05-10 16:33:03 +01:00
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