[SPIGOT-7936] Add API-methods for missing new components Created: 29/Oct/24  Updated: 25/Dec/24

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Sivert Paulsen Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Attachments: PNG File image-2024-10-29-11-01-27-690.png     PNG File image-2024-10-29-11-01-50-609.png     PNG File image-2024-10-29-11-02-06-341.png    
Issue Links:
Relates
relates to SPIGOT-7942 Add Consumable Component Resolved
Version: 1.12.3
Guidelines Read: Yes

 Description   

Currently there is no API for handling consumable, death-protection, firework ad a few more components for 1.21.3.
Consumable is the main one as certain properties from 1.21.1's food-component has been moved here, and without being able to set it, breaks some item-behaviour

Sidenote: There are also typos in the javadocs for UsecooldownComponent, seemingly from being copy/pasted from food/jukebox-playable-components



 Comments   
Comment by Doc [ 01/Nov/24 ]

Created https://hub.spigotmc.org/jira/browse/SPIGOT-7942 for the case of Consumable Component.

Comment by Jake Potrebic [ 01/Nov/24 ]

FoodComponent was marked as Experimental for its whole lifetime. Any changes can happen without warning

Comment by Sivert Paulsen [ 29/Oct/24 ]

Would also like to see FoodComponent retaining its properties from before but deprecated if possible
Similar to how ItemMeta#setfireResistant is deprecated but sets the new DamageResistant component

Generated at Sun Mar 30 18:01:22 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.