Script API - v26.60.30
    Preparing search index...

    Class BlockComponentNeighborChangedAfterEventBeta

    Contains information regarding neighboring block changes for a specific block.

    export class BlockComponentNeighborChangedAfterEvent extends BlockEvent {
    private constructor();
    getChanges(): NeighborChange[];
    }

    Hierarchy (View Summary)

    • BlockEvent
      • BlockComponentNeighborChangedAfterEvent
    Index
    block: Block

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

    This property can't be read in early-execution mode.

    dimension: Dimension

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

    This property can't be read in early-execution mode.

    • Returns NeighborChange[]

      One entry for each neighboring direction that changed, ordered by when each direction first changed. If a direction changed multiple times during the tick, the entry contains the permutation before the first change and after the last change. Intermediate permutations are not included.

      Returns the neighboring block changes for this event.

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