Search in sources :

Example 1 with RSName

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

the class RSPlayerMixin method getName.

@Inject
@Override
public String getName() {
    final RSName rsName = getRsName();
    if (rsName == null) {
        return null;
    }
    String name = rsName.getName();
    if (name == null) {
        return null;
    }
    return name.replace('\u00A0', ' ');
}
Also used : RSName(net.runelite.rs.api.RSName) Inject(net.runelite.api.mixins.Inject)

Aggregations

Inject (net.runelite.api.mixins.Inject)1 RSName (net.runelite.rs.api.RSName)1