@minecraft/server
    Preparing search index...

    Class PoiBlockTypeBeta

    Describes a block point-of-interest type.

    Required Experiments:

    • Poi
    Index

    Properties

    Methods

    Properties

    id: number

    Numeric identifier of this POI type.

    name: string

    Namespaced identifier of this POI type.

    tickets: number

    Maximum number of tickets that can be claimed from each POI instance of this type.

    usableRange: number

    Maximum range, in blocks, at which this POI type is considered usable.

    Methods

    • Beta

      Parameters

      Returns boolean

      True if both objects describe the same POI type; otherwise false.

      Tests whether this object and another object describe the same POI type.

      no-restricted-execution - This function can't be called in restricted-execution mode.

    • Beta

      Parameters

      • tag: string

        POI tag to check.

      Returns boolean

      True if the POI conatains the tag; otherwise false.

      Tests whether the type has the provided tag attribute

      no-restricted-execution - This function can't be called in restricted-execution mode.