screeps-api
    Preparing search index...

    Interface Mineral

    A mineral deposit. Can be harvested by creeps with a WORK body part using the extractor structure.

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

    interface Mineral {
        _id: string;
        density: 1 | 2 | 3 | 4;
        effects?: { [index: number]: Effect } | null;
        mineralAmount: number;
        mineralType: MineralResource;
        name?: string;
        nextRegenerationTime: number;
        room: string;
        type: "mineral";
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _id: string
    density: 1 | 2 | 3 | 4
    effects?: { [index: number]: Effect } | null

    Temporary effects that are active on this object

    mineralAmount: number
    mineralType: MineralResource
    name?: string
    nextRegenerationTime: number

    Tick at which this resource will be refilled

    room: string
    type: "mineral"
    x: number
    y: number