public class Model
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
Model |
clone() |
Model |
clone(boolean forceClone)
Creates a new model instance with cloned properties.
|
void |
finalise()
Finalises the model creation
|
Animable<?> |
getAnimable() |
java.awt.geom.Area |
getArea(int gridX,
int gridY,
int z)
Gets the
Area of the model. |
java.awt.Rectangle |
getBoundingBox(int gridX,
int gridY,
int z)
Gets the
Rectangle bounds of the model. |
int |
getHeight()
Gets the height of this model.
|
int |
getLastUpdateTick()
Gets the last update tick of the model.
|
short[][] |
getRasterizedPoints()
Gets the rasterized points for this model.
|
Model |
getRotatedModel(int rot)
Deprecated.
|
int |
getTriangleCount()
Gets the amount of triangles this model consists of.
|
int[] |
getVertexXIndices()
Gets the vertex indices for the x dimension.
|
int[] |
getVertexYIndices()
Gets the vertex indices for the y dimension.
|
int[] |
getVertexZIndices()
Gets the vertex indices for the z dimension.
|
int |
getVerticesCount()
Gets the amount of vertices this model consists of.
|
int[] |
getVerticesX()
Gets the x values of the vertices for this model.
|
int[] |
getVerticesY()
Gets the y values of the vertices for this model.
|
int[] |
getVerticesZ()
Gets the z values of the vertices for this model.
|
boolean |
isImmutable() |
boolean |
isOptimized()
Checks if the model is optimized
|
boolean |
isOutdated()
Checks if the model data is outdated
|
void |
rotate(int rot)
Deprecated.
|
boolean |
skipUpdating(Animable<?> animable,
org.osbot.rs07.accessor.XModel instance)
Deprecated.
|
void |
translate(int x,
int y,
int z)
translates the model.
|
void |
updateModel(Client client,
Animable<?> animable,
org.osbot.rs07.accessor.XModel instance)
Deprecated.
|
public Animable<?> getAnimable()
public boolean isImmutable()
@Deprecated public boolean skipUpdating(Animable<?> animable, org.osbot.rs07.accessor.XModel instance)
@Deprecated public void updateModel(Client client, Animable<?> animable, org.osbot.rs07.accessor.XModel instance)
@Deprecated public void rotate(int rot)
@Deprecated public Model getRotatedModel(int rot)
public int getHeight()
public int[] getVerticesX()
public int[] getVerticesY()
public int[] getVerticesZ()
public int[] getVertexXIndices()
public int[] getVertexYIndices()
public int[] getVertexZIndices()
public boolean isOptimized()
public short[][] getRasterizedPoints()
public int getVerticesCount()
public int getTriangleCount()
public Model clone()
clone
in class java.lang.Object
public Model clone(boolean forceClone)
public void finalise()
public java.awt.geom.Area getArea(int gridX, int gridY, int z)
Area
of the model.Area
of the model.public java.awt.Rectangle getBoundingBox(int gridX, int gridY, int z)
Rectangle
bounds of the model.Rectangle
bounds of the model.public void translate(int x, int y, int z)
x
- the x offsety
- the y offsetz
- the z offsetpublic int getLastUpdateTick()
public boolean isOutdated()