getItem

open fun getItem(itemId: String): ItemStackT?(source)

Returns item by given itemId, or null if the ID not found in this registry.


open fun getItem(itemId: String, payload: Any?): ItemStackT?(source)

Returns item stack with specified payload by given itemId, or null if the ID not found in this registry.

If payload is not null, item will be configured using it.


open fun getItem(itemId: String, amount: Int): ItemStackT?(source)

Returns item stack with specified amount by given itemId, or null if ID not found in this registry.

If given amount is greater than maximum possible, will use maximum possible amount. Amount shouldn't be less than 1.


abstract fun getItem(itemId: String, payload: Any?, amount: Int): ItemStackT?(source)

Returns item stack with specified amount and payload by given itemId, or null if ID not found in this registry.

If given amount is greater than maximum possible, will use maximum possible amount. Amount shouldn't be less than 1.

Given payload may be used to configure item.