use of net.runelite.cache.definitions.SpotAnimDefinition in project runelite by runelite.
the class SpotAnimLoader method load.
public SpotAnimDefinition load(int id, byte[] b) {
SpotAnimDefinition def = new SpotAnimDefinition();
InputStream is = new InputStream(b);
def.id = id;
while (true) {
int opcode = is.readUnsignedByte();
if (opcode == 0) {
break;
}
this.decodeValues(opcode, def, is);
}
return def;
}
Aggregations