Geyser/core/src/main/java/org/geysermc
YHDiamond fbd157ccdf
Add Attribute Modifiers Display (#3728)
* Add Attribute Modifiers Display

Allows Bedrock players to view the Attribute modifiers display on the bottom of items.

* Fix handling for Knockback Resistance

For some reason, Knockback Resistance is multiplied by 10 in the display for addition, so this handles that oddball.

* Add null check for NBT

* Remove "contains" check

This is checked in the beginning of the addAttributes method so is not required here.

* Add curly brackets

Camotoy likes curly brackets I guess

* Use ModifierOperation enum instead of int for clarity
2023-05-16 14:54:34 -05:00
..
connector Start on update to Protocol 3.0 2022-10-29 19:23:21 -05:00
geyser Add Attribute Modifiers Display (#3728) 2023-05-16 14:54:34 -05:00