RebarItemSchema

Stores information about a Rebar item type, including its key, template ItemStack, class, and any associated blocks.

You should not need to use this if you are not working on Rebar.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val key: NamespacedKey
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Return's a clone of the template

Link copied to clipboard
open override fun getKey(): NamespacedKey
Link copied to clipboard

Returns the raw template of the RebarItemSchema, this is the template used for all base instances of this item. Modifying this will modify all items created from this schema. Use with caution.

Link copied to clipboard

Return's a new instance of the RebarItem from the itemClass using a copy of the template

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun <T> isType(clazz: Class<T>): Boolean
Link copied to clipboard
open fun key(): @NotNull Key
Link copied to clipboard
open fun onRegister(registry: RebarRegistry<*>)
Link copied to clipboard
open fun onUnregister(registry: RebarRegistry<*>)
Link copied to clipboard

Attempts to place the block associated with this item.

Link copied to clipboard