Search in sources :

Example 1 with RSModel

use of net.runelite.rs.api.RSModel in project runelite by runelite.

the class RSDecorativeObjectMixin method getModel.

@Inject
private RSModel getModel() {
    RSRenderable renderable = getRenderable();
    if (renderable == null) {
        return null;
    }
    RSModel model;
    if (renderable instanceof Model) {
        model = (RSModel) renderable;
    } else {
        model = renderable.getModel();
    }
    return model;
}
Also used : RSRenderable(net.runelite.rs.api.RSRenderable) RSModel(net.runelite.rs.api.RSModel) Model(net.runelite.api.Model) RSModel(net.runelite.rs.api.RSModel) Inject(net.runelite.api.mixins.Inject)

Aggregations

Model (net.runelite.api.Model)1 Inject (net.runelite.api.mixins.Inject)1 RSModel (net.runelite.rs.api.RSModel)1 RSRenderable (net.runelite.rs.api.RSRenderable)1