-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCommandEvent.php
More file actions
188 lines (167 loc) · 4.67 KB
/
CommandEvent.php
File metadata and controls
188 lines (167 loc) · 4.67 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: player_events.proto
namespace Df\Plugin;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Generated from protobuf message <code>df.plugin.CommandEvent</code>
*/
class CommandEvent extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string player_uuid = 1 [json_name = "playerUuid"];</code>
*/
protected $player_uuid = '';
/**
* Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
*/
protected $name = '';
/**
* Full command string like "/tp 100 64 200"
*
* Generated from protobuf field <code>string raw = 3 [json_name = "raw"];</code>
*/
protected $raw = '';
/**
* Just the command name like "tp"
*
* Generated from protobuf field <code>string command = 4 [json_name = "command"];</code>
*/
protected $command = '';
/**
* Parsed arguments like ["100", "64", "200"]
*
* Generated from protobuf field <code>repeated string args = 5 [json_name = "args"];</code>
*/
private $args;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $player_uuid
* @type string $name
* @type string $raw
* Full command string like "/tp 100 64 200"
* @type string $command
* Just the command name like "tp"
* @type string[] $args
* Parsed arguments like ["100", "64", "200"]
* }
*/
public function __construct($data = NULL) {
\Df\Plugin\GPBMetadata\PlayerEvents::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>string player_uuid = 1 [json_name = "playerUuid"];</code>
* @return string
*/
public function getPlayerUuid()
{
return $this->player_uuid;
}
/**
* Generated from protobuf field <code>string player_uuid = 1 [json_name = "playerUuid"];</code>
* @param string $var
* @return $this
*/
public function setPlayerUuid($var)
{
GPBUtil::checkString($var, True);
$this->player_uuid = $var;
return $this;
}
/**
* Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Full command string like "/tp 100 64 200"
*
* Generated from protobuf field <code>string raw = 3 [json_name = "raw"];</code>
* @return string
*/
public function getRaw()
{
return $this->raw;
}
/**
* Full command string like "/tp 100 64 200"
*
* Generated from protobuf field <code>string raw = 3 [json_name = "raw"];</code>
* @param string $var
* @return $this
*/
public function setRaw($var)
{
GPBUtil::checkString($var, True);
$this->raw = $var;
return $this;
}
/**
* Just the command name like "tp"
*
* Generated from protobuf field <code>string command = 4 [json_name = "command"];</code>
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* Just the command name like "tp"
*
* Generated from protobuf field <code>string command = 4 [json_name = "command"];</code>
* @param string $var
* @return $this
*/
public function setCommand($var)
{
GPBUtil::checkString($var, True);
$this->command = $var;
return $this;
}
/**
* Parsed arguments like ["100", "64", "200"]
*
* Generated from protobuf field <code>repeated string args = 5 [json_name = "args"];</code>
* @return RepeatedField<string>
*/
public function getArgs()
{
return $this->args;
}
/**
* Parsed arguments like ["100", "64", "200"]
*
* Generated from protobuf field <code>repeated string args = 5 [json_name = "args"];</code>
* @param string[] $var
* @return $this
*/
public function setArgs($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->args = $arr;
return $this;
}
}