PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
LegacyRuntimeEnumDescriberTrait.php
1<?php
2
3/*
4 *
5 * ____ _ _ __ __ _ __ __ ____
6 * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7 * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8 * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9 * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * @author PocketMine Team
17 * @link http://www.pocketmine.net/
18 *
19 *
20 */
21
22declare(strict_types=1);
23
24namespace pocketmine\data\runtime;
25
31trait LegacyRuntimeEnumDescriberTrait{
32 abstract protected function enum(\UnitEnum &$case) : void;
33
34 public function bellAttachmentType(\pocketmine\block\utils\BellAttachmentType &$value) : void{
35 $this->enum($value);
36 }
37
38 public function copperOxidation(\pocketmine\block\utils\CopperOxidation &$value) : void{
39 $this->enum($value);
40 }
41
42 public function coralType(\pocketmine\block\utils\CoralType &$value) : void{
43 $this->enum($value);
44 }
45
46 public function dirtType(\pocketmine\block\utils\DirtType &$value) : void{
47 $this->enum($value);
48 }
49
50 public function dripleafState(\pocketmine\block\utils\DripleafState &$value) : void{
51 $this->enum($value);
52 }
53
54 public function dyeColor(\pocketmine\block\utils\DyeColor &$value) : void{
55 $this->enum($value);
56 }
57
58 public function froglightType(\pocketmine\block\utils\FroglightType &$value) : void{
59 $this->enum($value);
60 }
61
62 public function leverFacing(\pocketmine\block\utils\LeverFacing &$value) : void{
63 $this->enum($value);
64 }
65
66 public function medicineType(\pocketmine\item\MedicineType &$value) : void{
67 $this->enum($value);
68 }
69
70 public function mobHeadType(\pocketmine\block\utils\MobHeadType &$value) : void{
71 $this->enum($value);
72 }
73
74 public function mushroomBlockType(\pocketmine\block\utils\MushroomBlockType &$value) : void{
75 $this->enum($value);
76 }
77
78 public function potionType(\pocketmine\item\PotionType &$value) : void{
79 $this->enum($value);
80 }
81
82 public function slabType(\pocketmine\block\utils\SlabType &$value) : void{
83 $this->enum($value);
84 }
85
86 public function suspiciousStewType(\pocketmine\item\SuspiciousStewType &$value) : void{
87 $this->enum($value);
88 }
89}