1: <?php
2: namespace aliuly\grabbag\api;
3:
4: use aliuly\grabbag\Main as GrabBagPlugin;
5: use aliuly\grabbag\api\GrabBagEvent;
6: use pocketmine\event\Cancellable;
7:
8: 9: 10:
11: class GbUpdateQueryEvent extends GrabBagEvent implements Cancellable {
12: public static $handlerList = null;
13: private $serverId;
14: private $tag;
15: private $attrs;
16: 17: 18: 19: 20: 21:
22: public function __construct(GrabBagPlugin $plugin, $id, $tag, $attrs) {
23: parent::__construct($plugin);
24: $this->serverId = $id;
25: $this->tag = $tag;
26: $this->attrs = $attrs;
27: }
28: 29: 30: 31:
32: public function getId() {
33: return $this->serverId;
34: }
35: 36: 37: 38:
39: public function setId($id) {
40: $this->serverId = $id;
41: }
42: 43: 44: 45:
46: public function getAttrs() {
47: return $this->attrs;
48: }
49: 50: 51: 52:
53: public function setAttrs($attrs) {
54: $this->attrs = $attrs;
55: }
56: 57: 58: 59:
60: public function getTag() {
61: return $this->tag;
62: }
63: 64: 65: 66:
67: public function setTag($tag) {
68: $this->tag = $tag;
69: }
70: }
71: