@minecraft
    正在准备搜索索引...

    类 BlockComponentNamedTickEvent实验性

    Contains information regarding a named tick event for a specific block.

    层级 (查看层级一览)

    索引

    属性

    方法

    属性

    block: Block

    Block currently in the world at the location of this event.

    dimension: Dimension

    Dimension that contains the block that is the subject of this event.

    方法

    • 参数

      • eventName: string

        The name to check against this event.

      返回 boolean

      Returns true if the event name matches the specified name; otherwise, false.

      Checks whether this named tick event has the specified name. Events are namespaced with their content UUID. Two named tick events with the same name but scheduled from different packs will not respond the same to this method.