@ascentbv/ts-common - v1.0.184
    Preparing search index...

    Class CustomBlock

    Base class for custom block components.

    Use with the BlockComponent decorator for automatic registration.

    ⁣@BlockComponent
    class MyBlock extends CustomBlock {
    static readonly COMPONENT_ID = `${Data.NAMESPACE}:my_block`;

    onPlayerInteract(event: BlockComponentPlayerInteractEvent) {
    // handle interaction
    }
    }

    Implements

    Index

    Constructors

    Properties

    COMPONENT_ID: string

    Methods