20 public const NETWORK_ID = ProtocolInfo::SIMPLE_EVENT_PACKET;
22 public const TYPE_ENABLE_COMMANDS = 1;
23 public const TYPE_DISABLE_COMMANDS = 2;
24 public const TYPE_UNLOCK_WORLD_TEMPLATE_SETTINGS = 3;
26 public int $eventType;
31 public static function create(
int $eventType) : self{
33 $result->eventType = $eventType;
38 $this->eventType = $in->getLShort();
42 $out->putLShort($this->eventType);
46 return $handler->handleSimpleEvent($this);