mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 06:30:39 -04:00
use es6 properties in protocol.js
This commit is contained in:
parent
5aee0000e4
commit
8aa0d786f0
@ -52,8 +52,10 @@ function extendType(functions, defaultTypeArgs) {
|
|||||||
|
|
||||||
class NMProtocols
|
class NMProtocols
|
||||||
{
|
{
|
||||||
|
types={};
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.types = {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addType(name, functions) {
|
addType(name, functions) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user