register

fun register(key: NamespacedKey, material: Material, blockClass: Class<out PylonBlock>)(source)

Registers a new block type with Pylon.

Parameters

key

A unique key that identifies this type of block

material

The material to use as the block. This must match the material of the item(s) that place the block.

blockClass

The class extending PylonBlock that represents a block of this type in the world.


inline fun <T : PylonBlock> register(key: NamespacedKey, material: Material)(source)