fCraft.PacketWriter.WriteMapChunk C# (CSharp) Method

WriteMapChunk() public method

public WriteMapChunk ( [ chunk, int chunkSize, byte progress ) : void
chunk [
chunkSize int
progress byte
return void
        public void WriteMapChunk( [NotNull] byte[] chunk, int chunkSize, byte progress )
        {
            if ( chunk == null )
                throw new ArgumentNullException( "chunk" );
            Write( OpCode.MapChunk );
            Write( ( short )chunkSize );
            Write( chunk, 0, 1024 );
            Write( progress );
        }