BlockEntityType

@CataloguedBy(catalogue = BlockEntityTypes::class)
interface BlockEntityType<T : BlockEntity> : Keyed

A type of block entity.

Functions

Link copied to clipboard
abstract fun isApplicable(block: Block): Boolean

Returns true if the given block is applicable to block entities of this type, or false otherwise.

Link copied to clipboard
@NotNull
abstract fun key(): @NotNull Key

Properties

Link copied to clipboard
@get:JvmName(name = "applicableBlocks")
abstract val applicableBlocks: Set<Block>

All of the blocks that block entities of this type can be bound to.