PocketMine-MP 5.21.1 git-e598364f0695495cbe71ddf0b62f134b51091c6e
ItemFlags.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\item\enchantment;
25
27final class ItemFlags{
28
29 private function __construct(){
30 //NOOP
31 }
32
33 public const NONE = 0x0;
34 public const ALL = 0xffff;
35 public const ARMOR = self::HEAD | self::TORSO | self::LEGS | self::FEET;
36 public const HEAD = 0x1;
37 public const TORSO = 0x2;
38 public const LEGS = 0x4;
39 public const FEET = 0x8;
40 public const SWORD = 0x10;
41 public const BOW = 0x20;
42 public const TOOL = self::HOE | self::SHEARS | self::FLINT_AND_STEEL;
43 public const HOE = 0x40;
44 public const SHEARS = 0x80;
45 public const FLINT_AND_STEEL = 0x100;
46 public const DIG = self::AXE | self::PICKAXE | self::SHOVEL;
47 public const AXE = 0x200;
48 public const PICKAXE = 0x400;
49 public const SHOVEL = 0x800;
50 public const FISHING_ROD = 0x1000;
51 public const CARROT_STICK = 0x2000;
52 public const ELYTRA = 0x4000;
53 public const TRIDENT = 0x8000;
54}