NetworkDispatcher.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:CustomWorldGen 作者:
private MultiPartCustomPayload(PacketBuffer preamble) throws IOException
{
    channel = preamble.readStringFromBuffer(20);
    part_count = preamble.readUnsignedByte();
    int length = preamble.readInt();
    if (length <= 0 || length >= FMLProxyPacket.MAX_LENGTH)
    {
        throw new IOException("The received FML MultiPart packet outside of valid length bounds, Max: " + FMLProxyPacket.MAX_LENGTH + ", Received: " + length);
    }
    data = new byte[length];
    data_buf = new PacketBuffer(Unpooled.wrappedBuffer(data));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号