BLOCKS

Properties

Link copied to clipboard
Link copied to clipboard
open override val id: Identifier

The identifier for this registry instance

Link copied to clipboard
open override val keys: MutableSet<Identifier>
Link copied to clipboard
open override val size: Int
Link copied to clipboard

Functions

Link copied to clipboard

Clears all managed entries. Called at the start of a reload.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun containsKey(key: Identifier): Boolean
Link copied to clipboard
Link copied to clipboard
open operator override fun get(key: Identifier): KattonRegistry.KattonBlockEntry?
Link copied to clipboard

Initializes this registry. Override to perform initialization logic.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun newNative(id: Identifier, registerMode: RegisterMode = RegisterMode.AUTO, blockFactory: (BlockBehaviour.Properties) -> Block): KattonRegistry.KattonBlockEntry

Registers a native Block instance with hot-reload support.

Link copied to clipboard
open override fun put(key: Identifier, value: KattonRegistry.KattonBlockEntry): KattonRegistry.KattonBlockEntry?
Link copied to clipboard
open override fun putAll(from: Map<out Identifier, KattonRegistry.KattonBlockEntry>)