Bedrock Energistics Core
    Preparing search index...

    Interface StorageTypeTextureDescriptionBeta

    A storage type texture description. This is the texture that will be used by default for storage bars of this type in machine UI.

    interface StorageTypeTextureDescription {
        baseId: string;
        formattingCode?: string;
        segments?: number;
    }
    Index
    baseId: string

    Base ID for the bar's segment items.

    One slot of a storage bar is drawn with one item per fill level, from empty to full, with the level appended to the base ID. A base ID of 'example:example' at the default StorageTypeTextureDescription.segments therefore needs 'example:example0' through 'example:example16' - that is, segments + 1 items, since empty is a level too. All of them must have the fluffyalien_energisticscore:ui_item tag.

    formattingCode?: string

    Formatting code to prefix the label. ONLY include the formatting code, NOT the '§'. Multiple formatting codes can be used.

    To use multiple formatting codes, string them together with no separator. For example, "lc" will make the label bold (l) and red (c).

    segments?: number

    How many fill levels one slot of the bar has, not counting empty.

    Must be a positive integer. A bar size slots tall shows size * segments levels across the whole bar, so a smaller number makes it coarser and needs fewer items. The default matches the built-in textures, which are 16 pixels tall and fill one pixel at a time.

    16