Skip to content

Commit 5e4f897

Browse files
changes
1 parent b06611c commit 5e4f897

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

docs/nova.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ nav:
135135
- "Scheduler": "addon/misc/scheduler.md"
136136
- "Project Distributors": "addon/misc/project-distributors.md"
137137
- "Migration Guide":
138+
- "0.18 ➝ 0.19": "addon/migration-guide/0.18-0.19.md"
138139
- "0.17 ➝ 0.18": "addon/migration-guide/0.17-0.18.md"
139140
- "0.16 ➝ 0.17": "addon/migration-guide/0.16-0.17.md"
140141
- "0.15 ➝ 0.16": "addon/migration-guide/0.15-0.16.md"

docs/nova/addon/items/item-behaviors.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ You can create a custom item behavior by implementing the `ItemBehavior` interfa
1414
There, you'll be able to override `baseDataComponents`, which are the default
1515
[data components](https://minecraft.wiki/w/Data_component_format) of `NovaItems` with that behavior.
1616

17-
Alternatively, you can also override `defaultPatch`, which is the default component patch that will be present
18-
on all item stacks of `NovaItems` with that behavior.
19-
2017
### Vanilla material properties
2118

2219
Some functionality can not yet be achieved by using data components, as it is still bound to the vanilla item type.
23-
As such, you can specify [VanillaMaterialProperties](https://nova.dokka.xenondevs.xyz/nova/xyz.xenondevs.nova.world.item.vanilla/-vanilla-material-property/index.html)
20+
For such cases, you can specify [VanillaMaterialProperties](https://nova.dokka.xenondevs.xyz/nova/xyz.xenondevs.nova.world.item.vanilla/-vanilla-material-property/index.html)
2421
which will change the **client-side** item type.
2522

2623
### Client-side item stack
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Minecraft version
2+
3+
Updated to 1.21.5
4+
5+
## InvUI
6+
7+
Updated InvUI to 2.0.0-alpha.8, which contains numerous breaking changes.
8+
See the [InvUI GitHub release page](https://github.com/NichtStudioCode/InvUI/releases/tag/2.0.0-alpha.8)
9+
for details.
10+
11+
## ItemBehavior
12+
13+
- `#!kotlin ItemBehavior.defaultPatch` has been removed with no replacement
14+
- `#!kotlin ItemBehavior.baseDataComponents` is now a provider of `xyz.xenondevs.nova.world.item.DataComponentMap`
15+
instead of the nms `DataComponentMap`. The new `DataComponentMap` allows the usage of Paper's data component types.
16+
Use the top-level function `buildDataComponentMapProvider { }` for a builder DSL.
17+
- `#!kotlin ItemBehavior#handleEquip` has been updated to use Paper's `EntityEquipmentChangedEvent`.
18+
Note that this handler is fired more often than the old one, such as when joining the server or when equipping
19+
an item in a hand. Nova's custom `ArmorEquipEvent` has been removed.
20+
- Removed overloads for default item behavior factory functions (and updated their constructors) that
21+
accepted `Holder<SoundEvent>`. Use `Key` instead.

0 commit comments

Comments
 (0)