rl-api: expose ObjectComposition::varbitId/varPlayerId

This commit is contained in:
Max Weber
2022-04-28 13:19:42 -06:00
parent bed28462a3
commit 1eda2c3658

View File

@@ -24,6 +24,8 @@
*/
package net.runelite.api;
import net.runelite.api.annotations.Varbit;
/**
* Information about a specific {@link ObjectID}
*/
@@ -73,4 +75,21 @@ public interface ObjectComposition extends ParamHolder
* @throws NullPointerException if {@link #getImpostorIds()} is null
*/
ObjectComposition getImpostor();
/**
* Gets the {@link Varbits} used to switch this multiloc, or {@code -1} if this is not switched by a Varbit
*
* @see #getImpostor()
* @see #getImpostorIds()
*/
@Varbit
int getVarbitId();
/**
* Gets the {@link VarPlayer} used to switch this multiloc, or {@code -1} if this is not switched by a VarPlayer
*
* @see #getImpostor()
* @see #getImpostorIds()
*/
int getVarPlayerId();
}