Search in sources :

Example 1 with AddIgnoreMessage

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

the class AddIgnoreMessageDecoder method decode.

@Override
public AddIgnoreMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    String username = NameUtil.decodeBase37(reader.getSigned(DataType.LONG));
    return new AddIgnoreMessage(username);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) AddIgnoreMessage(org.apollo.game.message.impl.AddIgnoreMessage)

Example 2 with AddIgnoreMessage

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

the class AddIgnoreMessageDecoder method decode.

@Override
public AddIgnoreMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    String username = NameUtil.decodeBase37(reader.getSigned(DataType.LONG));
    return new AddIgnoreMessage(username);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) AddIgnoreMessage(org.apollo.game.message.impl.AddIgnoreMessage)

Aggregations

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