modmuss50
504944c854
Split test mods into client and common. ( #3033 )
...
* Split test mods.
Signed-off-by: modmuss50 <modmuss50@gmail.com>
* Fixes
Signed-off-by: modmuss50 <modmuss50@gmail.com>
* Fixe datagen client
Signed-off-by: modmuss50 <modmuss50@gmail.com>
---------
Signed-off-by: modmuss50 <modmuss50@gmail.com>
2023-05-01 13:55:19 +01:00
Juuz
09a3510c69
EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot ( #2935 )
2023-03-15 09:14:00 +00:00
modmuss50
ae0966baae
Fix all valid Mixin AP warnings. ( #2914 )
2023-02-22 12:54:50 +00:00
modmuss50
57338cbe24
23w06a
2023-02-08 17:54:34 +00:00
modmuss50
12a6ba2c15
23w05a
2023-02-01 16:35:59 +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
modmuss50
a1ccd7bfed
23w04a
2023-01-24 16:59:43 +00:00
Technici4n
364b4f31bd
Fix ItemStack.EMPTY.getItem() rarely returning null due to threading ( #2826 )
...
* Fix ItemStack.EMPTY.getItem() rarely returning null due to threading
* Overwrite instead
(cherry picked from commit c3530bb1c6
)
(cherry picked from commit 693ffc0581
)
2023-01-20 18:08:23 +00:00
Technici4n
1134c5b850
Remove leftover @ApiStatus.Internal
annotations and add annotation validation ( #2825 )
...
* Remove leftover `@ApiStatus.Internal` annotations and add annotation validation
* Simplify
* Simplify more
* Update gradle/validate-annotations.gradle
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-01-05 12:50:15 +00:00
Silver
e498f5f0a9
Replace old nullability comments with annotations ( #2800 )
...
* Replace useless nullability comments with jetbrains annotation
* These were old comments
* Revert "These were old comments"
This reverts commit 4e9555ad51
.
* checkstyle + nullability in mixin
2023-01-02 13:04:34 +00:00
modmuss50
99f9db8063
Cleanup Environment annotation usage. ( #2755 )
...
* Remove @Environment(EnvType.CLIENT) from BoundedIntRule.validate
* Move ItemTooltipCallback to client source set
* Remove @Environment(EnvType.CLIENT) annotation
* Remove @Environment(EnvType.SERVER) from WorldChunkMixin
2022-12-23 13:10:16 +00:00
apple502j
4d2c60634d
Item API: override Item.Settings#requires ( #2745 )
2022-12-11 13:52:01 +00:00
modmuss50
fa25da992d
1.19.3-rc1
2022-12-01 15:46:20 +00:00
apple502j
8c84281028
1.19.3-pre2 javadoc fixes ( #2698 )
...
* 1.19.3-pre2 javadoc fixes
* Update fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/FabricDataGenerator.java
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
2022-11-26 19:57:30 +00:00
apple502j
d2e7dd88d0
Fix crash in 1.19.3 stack remainder test port ( #2674 )
2022-11-20 14:25:31 +00:00
AlphaMode
42048a1d27
Support stack aware recipe remainders ( #2556 )
...
* Support stack aware recipe remainders
* Fix checkstyle
* Remove all overwrites
* Add FabricItemStack and make RecipeRemainderHandler thread safe
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/impl/item/RecipeRemainderHandler.java
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
* Remove hasRecipeRemainder, Update test mod and remove unneeded mixins
* Update fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/CustomDamageTest.java
Co-authored-by: Salvatore Peluso <info@devpelux.xyz>
* Avoid copying the ItemStack
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/AbstractFurnaceBlockEntityMixin.java
Co-authored-by: Salvatore Peluso <info@devpelux.xyz>
* Sneakily change duplicate keybinding to a less used key
* make everything thread safe and improve AbstractFurnaceBlockEntityMixin
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItemStack.java
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: Salvatore Peluso <info@devpelux.xyz>
* clear thread local and change field prefix
* forgot the allow
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Co-authored-by: Salvatore Peluso <info@devpelux.xyz>
* Update fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/CustomDamageTest.java
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
* Add FurnaceGameTest
* Change test keybind back to LShift
* Fix brewing stand remainder and fix nitpicks
* add code example to remainder javadoc
* Fixed and reformatted docs, changed recipe mixin behavior to store the remainder stack instead of the original stack, refactoring.
* Added gametests for brewing stand and recipe mixins, fixed furnace gametest compairing stacks with themselves.
* Use (0,1,0) position for game tests
* Review changes
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
Co-authored-by: Salvatore Peluso <info@devpelux.xyz>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit fa140d5976
)
2022-11-20 13:46:25 +00:00
modmuss50
49abcf7e64
Update mappings
2022-11-16 16:12:51 +00:00
modmuss50
f84bf2d968
22w45a ( #2647 )
2022-11-10 16:07:38 +00:00
modmuss50
75e98211bd
22w42a 🐫 ( #2599 )
...
Co-authored-by: shartte <shartte@users.noreply.github.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-10-22 20:38:33 +01:00
apple502j
93d8cb82e8
Fix many javadoc issues ( #2526 )
...
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-09-25 14:45:12 +01:00
Technici4n
35a03c43c2
Fix inconsistent ordering of item attribute modifiers by using a linked hashmap ( #2380 )
2022-07-21 20:08:00 +01:00
Daomephsta
767db26ed9
Make getKnockbackResistance() work for all materials ( #2129 )
...
* Make getKnockbackResistance() work for all materials
* Add missing license to ArmorItemMixin.java
* Fix all build failures
* Document ArmorItemMixin
(cherry picked from commit 6c4e5d0990
)
2022-06-04 21:10:14 +01:00
modmuss50
1899036145
1.19-pre2
...
All mapping changes.
2022-05-23 17:20:40 +01:00
modmuss50
9ff28f4026
Split client only code into its own sourceset. ( #2179 )
...
A common source of crashes on modded Minecraft servers comes from modders accidently calling client only code from the client, this PR is another large step towards elimitating that.
This PR has been months in the making and years in the planning, requiring major changes to Loom & Loader. In recent Minecraft versions Mojang has made it easier than ever to cleanly split the jar, going against the status-quo of merging the client and server into one jar.
From the start we have designed Fabric to have a very clear split between client and common (client & server) code. Fabric has always encoraged keeping client only code seprate from the server, this can be seen at a fundamental level with the entrypoints in Loader. Fabric API's have all been designed with this mind.
This PR provides a compile safety net around Fabric API using client only code on the server. Even though there are almost 400 changed files, minimal changes beyond moving the files were required to achieve this in Fabric API, thanks to the effort of all contributors in the past.
These changes should not affect modders or players in anyway, a single "universal" jar is still produced. Im happy to awnswer any questions.
2022-05-21 16:26:46 +01:00
modmuss50
23acfcd6a1
Update mappings.
2022-05-20 18:56:00 +01:00
frqnny
258778f0e5
Add ModifyItemAttributeModifiersCallback ( #2175 )
...
* Add ItemAttributeModifiersCallback
* fix checkstyle errors
* fix checkstyle errors v2
* Edit javadoc per Technician's review
* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/ItemAttributeModifiersCallback.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
* Change functional interface name per Juuz's review
* Change name to ModifyItemAttributeModifiers per Juuz and Technician's request
* Forgot to add callback to the name
* Return mutable map
* Remove unused import
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit 85719ab7b7
)
2022-05-20 18:19:48 +01:00
modmuss50
ec94c6f636
22w16b
...
Co-authored-by: Player <player@player.to>
2022-04-20 22:22:10 +01:00
modmuss50
8eae451042
22w15a
2022-04-13 19:03:57 +01:00
modmuss50
0c7c3953f9
Merge remote-tracking branch 'origin/1.18.2' into 1.19
2022-04-10 17:20:49 +01:00
Technici4n
4457765521
Add stack-aware getAttributeModifiers and isSuitableFor to FabricItem ( #2090 )
...
* Add stack-aware getAttributeModifiers to FabricItem
* Add stack-aware version of isSuitableFor
* Use the standard attack damage UUID
2022-04-10 16:27:23 +01:00
modmuss50
717abbc48a
22w14a
2022-04-06 21:49:45 +01:00
Technici4n
691a79b5ca
Allow canceling the NBT update animation and block break reset ( #1790 )
...
* Allow canceling the NBT update animation
* Remove the event and introduce FabricItem instead
* Remove FabricItem and add an item setting instead
* Revert "Remove FabricItem and add an item setting instead"
This reverts commit a93205c927
.
After some discussion, it was agreed upon internally that an interface is better than item settings for behavior extensions.
* Add allowContinuingBlockBreaking
* Update ClientPlayerInteractionManagerMixin comment and inject name
2021-12-03 13:38:32 +00:00
Player
3ac43d9577
Revert Mixin compatibilityLevel bump, bump versions
2021-11-17 03:29:11 +01:00
modmuss50
e77d3ea62f
1.18-pre2 & Java 17
2021-11-16 18:41:10 +00:00
modmuss50
b4f4f6cda4
Update Loom and Loader. Cleanup/improve buildscript.
2021-11-12 15:02:54 +00:00
modmuss50
65d505fc8a
Bump versions
...
All of the version need to be bumped due to fabric-api-base being updated, this highlights the need for a better solution.
2021-11-05 17:09:48 +00:00
modmuss50
cbda9318cd
Update Gradle/Loom and mappings. ( #1692 )
...
* Update Gradle/Loom and mappings.
* Fix deprecations and enforce
* Review feedback
* More cleanup and deprecation fixes.
2021-08-31 14:00:20 +01:00
modmuss50
a02b4463f9
21w19a
2021-05-12 20:23:04 +01:00
modmuss50
23b3c92ea9
21w13a
2021-03-31 20:52:51 +01:00
modmuss50
36b77c3e9f
21w03a
2021-01-20 19:50:47 +00:00
modmuss50
92519afafe
Version bump
2021-01-19 19:38:22 +00:00
i509VCB
f8cf2bb436
Add custom value denoting module lifecycles. ( #1253 )
...
* Add custom value denoting module lifecycles.
* Make the module validation work.
My hand has been forced - we must use buildSrc since JsonSlurper is not available in main buildscript.
* Apply task to each project and dont cross projects
* A horrible hack
* Wait what
* It works now.
* Not needed
* Drop unneeded maven repo, cache map lookup
(cherry picked from commit daa38b3d82
)
2021-01-19 18:54:23 +00:00
Thalia Nero
9f7a7423f3
Add module dependencies to maven POM ( #1104 )
2020-11-15 19:46:01 +00:00
modmuss50
df3673f0bc
20w46a
2020-11-11 20:18:14 +00:00
modmuss50
f8ac1db2b1
Version bump
2020-09-27 12:38:48 +01:00
Vincent Lee
616c01224d
Add hook for custom damage logic ( #964 )
...
* Add hook for custom damage logic
* Address comments
* Change to use new FabricItemSettings
* Make CustomDamageHandler a functional interface
2020-09-27 12:09:07 +01:00
Juuxel
29679fd6fa
Add FabricItemSettings and an API for custom item equipment slots ( #956 )
...
* Add FabricItemSettings and an API for custom item equipment slots
Closes #952 .
* Bump module version
* Rename duck method to have fabric_ prefix and add Unique to mixin field
* Switch to FabricItemInternals + ExtraData like in FabricBlockSettings
2020-08-21 17:21:09 +01:00
i509VCB
16acbe5bfd
Lifecycle Events V1 [1.16] ( #681 )
...
* Lifecycle Events V1 (1.16)
Now includes Chunk and (Block)Entity (un)load events
(cherry picked from commit 82b372873fd930dd07768331f7b70f6f9d3d441d)
* Move around code to work on 1.16
* Checkstyle
* Remove primary server getters
(cherry picked from commit c84f36209d
)
* IJ DO YOU SPEAK RESOLVING IMPORTS
* Prune the tests that shouldn't exist
(cherry picked from commit a5112223ca
)
* Listen here checkstyle you bugger
* Split up events to individual interfaces. Make Chunk events use WorldChunk instead.
(cherry picked from commit 3431c0d894
)
2020-06-25 22:28:21 +01:00