Package net.runelite.api
Interface ModelData
-
- All Superinterfaces:
Mesh<ModelData>,Node,Renderable
public interface ModelData extends Mesh<ModelData>, Renderable
An unlit model
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_AMBIENTstatic intDEFAULT_CONTRASTstatic intDEFAULT_Xstatic intDEFAULT_Ystatic intDEFAULT_Z
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelDatacloneColors()ClonesgetFaceColors()so they can be safely mutatedModelDatacloneTextures()ClonesMesh.getFaceTextures()so they can be safely mutatedModelDatacloneTransparencies()ClonesMesh.getFaceTransparencies()so they can be safely mutatedModelDatacloneTransparencies(boolean force)ClonesMesh.getFaceTransparencies()so they can be safely mutatedModelDatacloneVertices()ClonesMesh.getVerticesX(),Mesh.getVerticesY(), andMesh.getVerticesZ()so they can be safely mutatedshort[]getFaceColors()Gets colors as Jagex HSLModellight()Lights a model with default valuesModellight(int ambient, int contrast, int x, int y, int z)Lights a model.ModelDatarecolor(short colorToReplace, short colorToReplaceWith)Applies a recolor using Jagex's HSL format.ModelDataretexture(short find, short replace)Applies a retexture, changing texture ids.ModelDatashallowCopy()Shallow-copies a model.-
Methods inherited from interface net.runelite.api.Mesh
getFaceCount, getFaceIndices1, getFaceIndices2, getFaceIndices3, getFaceTextures, getFaceTransparencies, getVerticesCount, getVerticesX, getVerticesY, getVerticesZ, rotateY180Ccw, rotateY270Ccw, rotateY90Ccw, scale, translate
-
Methods inherited from interface net.runelite.api.Node
getHash, getNext, getPrevious
-
Methods inherited from interface net.runelite.api.Renderable
getModel, getModelHeight, setModelHeight
-
-
-
-
Field Detail
-
DEFAULT_AMBIENT
static final int DEFAULT_AMBIENT
- See Also:
- Constant Field Values
-
DEFAULT_CONTRAST
static final int DEFAULT_CONTRAST
- See Also:
- Constant Field Values
-
DEFAULT_X
static final int DEFAULT_X
- See Also:
- Constant Field Values
-
DEFAULT_Y
static final int DEFAULT_Y
- See Also:
- Constant Field Values
-
DEFAULT_Z
static final int DEFAULT_Z
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFaceColors
short[] getFaceColors()
Gets colors as Jagex HSL- See Also:
JagexColor
-
light
Model light(int ambient, int contrast, int x, int y, int z)
Lights a model. The produced model shares verticies, face transparencies, face indicies, and textures with the underlying ModelData. If any of these may be mutated the correspondingcloneXmethod should be called beforelighting
-
light
Model light()
Lights a model with default values- See Also:
light(int, int, int, int, int)
-
recolor
ModelData recolor(short colorToReplace, short colorToReplaceWith)
Applies a recolor using Jagex's HSL format. You should callcloneColors()()} before calling this method
-
retexture
ModelData retexture(short find, short replace)
Applies a retexture, changing texture ids. You should callcloneTextures()before calling this method
-
shallowCopy
ModelData shallowCopy()
Shallow-copies a model. Does not copy any arrays, which are still shared with this object.
-
cloneVertices
ModelData cloneVertices()
ClonesMesh.getVerticesX(),Mesh.getVerticesY(), andMesh.getVerticesZ()so they can be safely mutated
-
cloneColors
ModelData cloneColors()
ClonesgetFaceColors()so they can be safely mutated
-
cloneTextures
ModelData cloneTextures()
ClonesMesh.getFaceTextures()so they can be safely mutated
-
cloneTransparencies
ModelData cloneTransparencies()
ClonesMesh.getFaceTransparencies()so they can be safely mutated
-
cloneTransparencies
ModelData cloneTransparencies(boolean force)
ClonesMesh.getFaceTransparencies()so they can be safely mutated- Parameters:
force- EnsureMesh.getFaceTransparencies()is non null
-
-