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 int
DEFAULT_AMBIENT
static int
DEFAULT_CONTRAST
static int
DEFAULT_X
static int
DEFAULT_Y
static int
DEFAULT_Z
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelData
cloneColors()
ClonesgetFaceColors()
so they can be safely mutatedModelData
cloneTextures()
ClonesMesh.getFaceTextures()
so they can be safely mutatedModelData
cloneTransparencies()
ClonesMesh.getFaceTransparencies()
so they can be safely mutatedModelData
cloneTransparencies(boolean force)
ClonesMesh.getFaceTransparencies()
so they can be safely mutatedModelData
cloneVertices()
ClonesMesh.getVerticesX()
,Mesh.getVerticesY()
, andMesh.getVerticesZ()
so they can be safely mutatedshort[]
getFaceColors()
Gets colors as Jagex HSLModel
light()
Lights a model with default valuesModel
light(int ambient, int contrast, int x, int y, int z)
Lights a model.ModelData
recolor(short colorToReplace, short colorToReplaceWith)
Applies a recolor using Jagex's HSL format.ModelData
retexture(short find, short replace)
Applies a retexture, changing texture ids.ModelData
shallowCopy()
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 correspondingcloneX
method should be called beforelight
ing
-
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
-
-