initial commit
This commit is contained in:
commit
91ef126fc4
11 changed files with 2058 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
node_modules/
|
||||
npm-debug.log
|
||||
dist/
|
||||
2
.npmignore
Normal file
2
.npmignore
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
node_modules/
|
||||
npm-debug.log
|
||||
27
Gulpfile.js
Normal file
27
Gulpfile.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
var gulp = require('gulp');
|
||||
var plumber = require('gulp-plumber');
|
||||
var babel = require('gulp-babel');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var options = { stage: 0, optional: ["runtime"] };
|
||||
|
||||
gulp.task('compile', function() {
|
||||
return gulp
|
||||
.src('src/**/*.js')
|
||||
.pipe(plumber({
|
||||
errorHandler: function(err) {
|
||||
console.error(err.stack);
|
||||
this.emit('end');
|
||||
}
|
||||
}))
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(babel(options))
|
||||
.pipe(plumber.stop())
|
||||
.pipe(sourcemaps.write('maps/'))
|
||||
.pipe(gulp.dest('dist/'));
|
||||
});
|
||||
|
||||
gulp.task('watch', function() {
|
||||
return gulp.watch('src/**/*.js', ['compile']);
|
||||
});
|
||||
|
||||
gulp.task('default', ['compile']);
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 mhsjlw
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
27
README.md
Normal file
27
README.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
pocket-minecraft-protocol
|
||||
=========================
|
||||
|
||||
[](http://npmjs.com/package/pocket-minecraft-protocol)
|
||||
[](https://gitter.im/PrismarineJS/node-minecraft-protocol)
|
||||
|
||||
Parse and serialize Minecraft pocket edition packets.
|
||||
|
||||
## Features
|
||||
|
||||
* Supports Minecraft PE `0.13.x`
|
||||
* Pure javascript
|
||||
* Easily send and listen for any packet
|
||||
* RakNet support through node-raknet
|
||||
|
||||
## Installation
|
||||
Simply run
|
||||
|
||||
npm install pocket-minecraft-protcol
|
||||
|
||||
Then view our `examples` for inspiration!
|
||||
|
||||
## Contributors
|
||||
This project is run by these guys:
|
||||
|
||||
- [mhsjlw](https://github.com/mhsjlw) ([mhsjlw@aol.com](mailto:mhsjlw@aol.com))
|
||||
- [rom1504](https://github.com/rom1504)
|
||||
1940
data/protocol.json
Normal file
1940
data/protocol.json
Normal file
File diff suppressed because it is too large
Load diff
1
examples/client.js
Normal file
1
examples/client.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
var mcpe = require('../');
|
||||
1
examples/server.js
Normal file
1
examples/server.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
var mcpe = require('../');
|
||||
1
index.js
Normal file
1
index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
module.exports = require('./dist/index.js');
|
||||
35
package.json
Normal file
35
package.json
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "pocket-minecraft-protocol",
|
||||
"version": "0.1.0",
|
||||
"description": "Parse and serialize Minecraft pocket edition packets.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [
|
||||
"minecraft",
|
||||
"pocket-edition",
|
||||
"protocol"
|
||||
],
|
||||
"author": "mhsjlw <mhsjlw@aol.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"babel-runtime": "^5.4.4",
|
||||
"protodef": "0.2.2",
|
||||
"xml2js": "0.4.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "3.8.11",
|
||||
"gulp-babel": "5.1.0",
|
||||
"gulp-plumber": "1.0.1",
|
||||
"gulp-sourcemaps": "1.3.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/mhsjlw/pocket-minecraft-protocol.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/mhsjlw/pocket-minecraft-protocol/issues"
|
||||
},
|
||||
"homepage": "https://github.com/mhsjlw/pocket-minecraft-protocol#readme"
|
||||
}
|
||||
0
src/index.js
Normal file
0
src/index.js
Normal file
Loading…
Add table
Add a link
Reference in a new issue