This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpacketRouter.js
53 lines (39 loc) · 1.49 KB
/
packetRouter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
var util = require('util'),
EventEmitter = require('events').EventEmitter;
function PacketRouter(world) {
EventEmitter.call(this);
this.world = world;
var self = this;
this.useEntity = function (data, player) {
console.log('Got useEntity, need to add code!'.red);
};
this.entityAction = function (data, player) {
console.log('Got entityAction, need to add code!'.red);
};
this.closeWindow = function (data, player) {
console.log('Got closeWindow, need to add code!'.red);
};
this.clickWindow = function (data, player) {
console.log('Got clickWindow, need to add code!'.red);
};
this.confirmTransaction = function (data, player) {
console.log('Got confirmTransaction, need to add code!'.red);
};
this.creativeInventoryAction = function (data, player) {
console.log('Got creativeInventoryAction, need to add code!'.red);
};
this.enchantItem = function (data, player) {
console.log('Got enchantItem, need to add code!'.red);
};
this.updateSign = function (data, player) {
console.log('Got updateSign, need to add code!'.red);
};
this.playerAbilities = function (data, player) {
console.log('Got playerAbilities, need to add code!'.red);
};
this.localeViewDistance = function (data, player) {
console.log('Got localeViewDistance, need to add code!'.red);
};
};
util.inherits(PacketRouter, EventEmitter);
module.exports = PacketRouter;