Creates a new RenderMesh and initializes it from file. See RenderMesh.importFromFile method description for parameters details.
Creates a new empty RenderMesh.
Adds new mesh to the current one on the specified coordinates.
RenderMesh object to be added to current mesh
Adds new mesh to the current one on the specified coordinates with specified offset.
RenderMesh object to be added to current mesh
Adds new mesh to the current one on the specified coordinates with specified offset and scale.
RenderMesh object to be added to current mesh
Adds a new vertex on the specified coordinates.
Adds a new vertex on the specified coordinates.
x texture offset of the vertex
y texture offset of the vertex
Creates a copy of current RenderMesh.
Scales the mesh to fit into the specified box.
Scales the mesh to fit into the specified box.
if true
, the ratio of the dimensions are preserved
Pointer to the native object instance of the following RenderMesh, represented as long number.
Imports mesh file using specified path.
path to the mesh file. Path should be absolute path or be relative to the resources folder or to the "models/" folder
file type to read mesh from. The only currently supported mesh file type is "obj"
additional import parameters or null, if not needed
Forces Minecraft to rebuild specified RenderMesh object.
Rotates the mesh around the specified coordinates.
rotation angle along X axis, in radians
rotation angle along Y axis, in radians
rotation angle along Z axis, in radians
Rotates the mesh around the (0, 0, 0) coordinates.
rotation angle along X axis, in radians
rotation angle along Y axis, in radians
rotation angle along Z axis, in radians
Specifies color to be applied to the next vertices. If the color is not white and the texture is applied to mesh, texture's colors will be affected.
Specifies color to be applied to the next vertices. If the color is not white and the texture is applied to mesh, texture's colors will be affected.
Makes specified RenderMesh foliage tinted.
Makes specified RenderMesh foliage tinted.
Makes specified RenderMesh grass tinted.
Sets following RenderMesh light direction.
Sets following RenderMesh light position.
Removes any tint from specified RenderMesh.
Makes specified RenderMesh water tinted.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Class representing a set of vertices with some other parameters required to display them correctly. Used as block, entity and item models, in animations and actually anywhere you need some physical shape.