find By Item
Finds a custom item from an ItemStack
based on its metadata.
This function extracts the custom item ID from the lore of the provided ItemStack
and retrieves the corresponding custom item from the registry.
Return
The custom item associated with the given ItemStack
, or null
if not found.
Parameters
item
The ItemStack
representing the custom item.