Package org.spout.api.exception

Examples of org.spout.api.exception.UnknownPacketException


  @Override
  public MessageCodec<?> readHeader(ByteBuf buf) throws UnknownPacketException {
    int opcode = buf.readUnsignedByte();
    MessageCodec<?> codec = getCodecLookupService().find(opcode);
    if (codec == null) {
      throw new UnknownPacketException(opcode);
    }
    return codec;
  }
View Full Code Here

TOP

Related Classes of org.spout.api.exception.UnknownPacketException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.