Companion

Functions

Link copied to clipboard
@Contract(value = "null -> null")
fun fromStack(stack: ItemStack?): PylonItem?

Converts a regular ItemStack to a PylonItemStack Returns null if the ItemStack is not a Pylon item

Link copied to clipboard
Link copied to clipboard
@Contract(value = "null -> false")
fun isPylonItem(stack: ItemStack?): Boolean

Checks if stack is a Pylon item.

Link copied to clipboard
inline fun <T : PylonItem> register(template: ItemStack, pylonBlockKey: NamespacedKey? = null)
fun register(itemClass: Class<out PylonItem>, template: ItemStack, pylonBlockKey: NamespacedKey? = null)
Link copied to clipboard

Suppresses warnings about missing/incorrect translation keys for the item name and lore for the given item key