Search in sources :

Example 1 with FlashingTabClickedMessage

use of org.apollo.game.message.impl.FlashingTabClickedMessage in project apollo by apollo-rsps.

the class FlashingTabClickedMessageDecoder method decode.

@Override
public FlashingTabClickedMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    int tab = (int) reader.getUnsigned(DataType.BYTE);
    return new FlashingTabClickedMessage(tab);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) FlashingTabClickedMessage(org.apollo.game.message.impl.FlashingTabClickedMessage)

Example 2 with FlashingTabClickedMessage

use of org.apollo.game.message.impl.FlashingTabClickedMessage in project apollo by apollo-rsps.

the class FlashingTabClickedMessageDecoder method decode.

@Override
public FlashingTabClickedMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    int tab = (int) reader.getUnsigned(DataType.BYTE);
    return new FlashingTabClickedMessage(tab);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) FlashingTabClickedMessage(org.apollo.game.message.impl.FlashingTabClickedMessage)

Aggregations

FlashingTabClickedMessage (org.apollo.game.message.impl.FlashingTabClickedMessage)2 GamePacketReader (org.apollo.net.codec.game.GamePacketReader)2