Commit graph

12 commits

Author SHA1 Message Date
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
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
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
modmuss50
df3673f0bc 20w46a 2020-11-11 20:18:14 +00: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