Reference Source

References

summary
public

C Render

Base class for all Renders

public

F loadBlockState(state: string, assetRoot: string): Promise<object>

Loads a blockstate file and returns the contained JSON

public

Loads a model file and returns the contained JSON

public

F loadTextureAsBase64(root: string, namespace: string, dir: string, name: string): Promise<string>

Loads a Mincraft texture an returns it as Base64

public

F loadTextureMeta(texture: *, assetRoot: *): *

public

F scaleUv(uv: number, size: number, scale: number): number

Scales UV values

public

Default asset root

public

V defaultOptions: {"showAxes": *, "showGrid": *, "autoResize": *, "controls": *, "camera": *, "canvas": *, "pauseHidden": boolean, "forceContext": *, "sendStats": boolean}

combined

summary
public

A renderer-wrapper to combine the individual aspects of renderers into a single scene, e.g.

entity

summary
public

A renderer for Minecraft entities

gui

summary
public

A renderer for Minecraft GUIs

public

V guiHelper: {"addPos": *, "subtractPos": *, "multiplyPos": *, "inventorySlot": *, "recipe": *}

Helper functions for GUI creation

public

V guiPositions: {"bars": *, "book": *, "container": *}

Definition of positions/UV mappings ov Minecraft GUI assets

lib

summary
public

F OrbitControls(object: *, domElement: *)

public

F contour(grid: Function, start: Array): Array

Computes a contour for a given input grid function using the marching squares algorithm.

model

summary
public

A renderer for Minecraft models, i.e.

public

Helper to convert multi-block structures to models used by ModelRender

skin

summary
public

A renderer for Minecraft player models/skins

public

V texturePositions: {"head": *, "body": *, "leftArm": *, "rightArm": *, "leftLeg": *, "rightLeg": *, "hat": *, "jacket": *, "leftSleeve": *, "rightSleeve": *, "leftTrousers": *, "rightTrousers": *, "cape": *, "capeOptifine": *}

Texture positions for Minecraft's player model