Interface UISlotElement

There are 12 types of UI elements given by Inner Core, and you can also create your custom ones. Each element type has it's own specific description object. These description objects are all inherited from this BasicElementDescription. It means that each element must have coords on the GUI by X, Y, and additionally Z axis, and also you can specify how the element will behave when touched, in clicker object (optional).

interface UISlotElement {
    bitmap?: string;
    clicker?: UIClickEvent;
    darken?: boolean;
    disablePixelPerfect?: boolean;
    iconScale?: number;
    isDarkenAtZero?: boolean;
    isTransparentBackground?: boolean;
    isValid?: ((id: number, count: number, data: number, container: Container, item: ItemInstance) => boolean);
    maxStackSize?: number;
    needClean?: boolean;
    onItemChanged?: ((container: UiAbstractContainer, oldId: number, oldCount: number, oldData: number) => void);
    size?: number;
    source?: ItemInstance;
    text?: string;
    type: "slot";
    visual?: boolean;
    x?: number;
    y?: number;
    z?: number;
}

Hierarchy (view full)

Properties

bitmap?: string
clicker?: UIClickEvent
darken?: boolean
disablePixelPerfect?: boolean
false

2.2.1b96

iconScale?: number
0.82

2.2.1b96

isDarkenAtZero?: boolean
isTransparentBackground?: boolean

In 2.0.4b43, not needed anymore.

isValid?: ((id: number, count: number, data: number, container: Container, item: ItemInstance) => boolean)
maxStackSize?: number
needClean?: boolean

In 2.0.4b43, not needed anymore.

onItemChanged?: ((container: UiAbstractContainer, oldId: number, oldCount: number, oldData: number) => void)
size?: number
source?: ItemInstance
text?: string

2.0.4b42

type
visual?: boolean
x?: number
y?: number
z?: number

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.