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 |
F loadJsonFromPath(root: string, path: string): Promise<object> Loads a model file and returns the contained JSON |
|
public |
Loads a Mincraft texture an returns it as Base64 |
|
public |
F loadTextureMeta(texture: *, assetRoot: *): * |
|
public |
Scales UV values |
|
public |
F trimCanvas(c: *): * |
|
public |
F deepDisposeMesh(obj: *, removeChildren: *) |
|
public |
F mergeCubeMeshes(cubes: *, toBuffer: *): {"geometry": *, "materials": *} |
|
public |
F mergeMeshes__(meshes: *, toBufferGeometry: *): * |
|
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: *) |
model
summary | ||
public |
A renderer for Minecraft models, i.e. |
|
public |
F worker(self: *) |
|
public |
F ModelConverter() Helper to convert multi-block structures to models used by ModelRender |
|
public |
F deleteObjectProperties(obj: *) |
|
public |
F findMatchingVariant(variants: *, selector: *): * |
|
public |
F loadAndMergeModel(model: *, assetRoot: *): * |
|
public |
F loadModel(model: *, type: *, assetRoot: *): * |
|
public |
F loadTextures(textureNames: *, assetRoot: *): * |
|
public |
F mergeParents(model: *, modelName: *, assetRoot: *): * |
|
public |
F modelCacheKey(model: *): * |
|
public |
F parseModel(model: *, modelOptions: *, parsedModelList: *, assetRoot: *): * |
|
public |
F parseModelType(string: *): {"type": string, "model": string} |
|
public |
F toRadians(angle: *): * |
|
public |
F variantStringToObject(str: *): * |
skin
summary | ||
public |
A renderer for Minecraft player models/skins |
|
public |
V texturePositions: {"head": *, "body": *, "rightArm": *, "leftArm": *, "rightLeg": *, "leftLeg": *, "hat": *, "jacket": *, "rightSleeve": *, "leftSleeve": *, "rightTrousers": *, "leftTrousers": *, "cape": *, "capeRelative": *, "capeOptifineRelative": *, "capeOptifine": *, "capeLabymodRelative": *} Texture positions for Minecraft's player model |