Interface PartElement

Part's box description specified in Render.setPart method.

interface PartElement {
    children?: PartElement[];
    coords: Vector;
    size: {
        w?: number;
        x: number;
        y: number;
        z: number;
    };
    uv?: {
        x: number;
        y: number;
    };
}

Properties

children?: PartElement[]

Specifies child elements, using current box coordinates as base for the child boxes.

coords: Vector

Box coordinates, relative to part's coordinates.

size: {
    w?: number;
    x: number;
    y: number;
    z: number;
}

Box size.

additional size to be added from all the six sizes of the box

uv?: {
    x: number;
    y: number;
}

Box texture offset.

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