Search in sources :

Example 1 with RemoveIgnoreMessage

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

the class RemoveIgnoreMessageDecoder method decode.

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

Example 2 with RemoveIgnoreMessage

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

the class RemoveIgnoreMessageDecoder method decode.

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

Aggregations

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