CustomItemRegistry

A registry for managing custom items by their IDs.

This object is responsible for storing and retrieving custom items based on their unique IDs. The registry allows custom items to be accessed and manipulated through their IDs, and it provides functionality to register items and find items from an ItemStack based on metadata.

Functions

Link copied to clipboard
fun findByItem(item: ItemStack?): CustomItem?

Finds a custom item from an ItemStack based on its metadata.

Link copied to clipboard

Registers a custom item in the registry with its unique ID.