screeps-api
    Preparing search index...

    Interface StructureExtractor

    Allows creeps to harvest a mineral deposit.

    https://docs.screeps.com/api/#StructureExtractor

    interface StructureExtractor {
        _id: string;
        _isDisabled: boolean;
        cooldown: number;
        effects?: { [index: number]: Effect } | null;
        hits: number;
        hitsMax: number;
        name?: string;
        notifyWhenAttacked: boolean;
        room: string;
        type: "extractor";
        user: string;
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _id: string
    _isDisabled: boolean
    cooldown: number
    effects?: { [index: number]: Effect } | null

    Temporary effects that are active on this object

    hits: number
    hitsMax: number
    name?: string
    notifyWhenAttacked: boolean
    room: string
    type: "extractor"
    user: string

    ID of the user who owns this object.

    Note: NPCs do not have long-form hex ID strings like normal players:

    • Invader: "2"
    • SourceKeeper: "3"
    x: number
    y: number