-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'minor-next' of github.com:pmmp/PocketMine-MP into minor…
…-next
- Loading branch information
Showing
14 changed files
with
1,263 additions
and
1,166 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
/* | ||
* | ||
* ____ _ _ __ __ _ __ __ ____ | ||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ | ||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | | ||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ | ||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* @author PocketMine Team | ||
* @link http://www.pocketmine.net/ | ||
* | ||
* | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace pocketmine\data\bedrock; | ||
|
||
use pocketmine\item\GoatHornType; | ||
use pocketmine\utils\SingletonTrait; | ||
|
||
final class GoatHornTypeIdMap{ | ||
use SingletonTrait; | ||
/** @phpstan-use IntSaveIdMapTrait<GoatHornType> */ | ||
use IntSaveIdMapTrait; | ||
|
||
private function __construct(){ | ||
foreach(GoatHornType::cases() as $case){ | ||
$this->register(match($case){ | ||
GoatHornType::PONDER => GoatHornTypeIds::PONDER, | ||
GoatHornType::SING => GoatHornTypeIds::SING, | ||
GoatHornType::SEEK => GoatHornTypeIds::SEEK, | ||
GoatHornType::FEEL => GoatHornTypeIds::FEEL, | ||
GoatHornType::ADMIRE => GoatHornTypeIds::ADMIRE, | ||
GoatHornType::CALL => GoatHornTypeIds::CALL, | ||
GoatHornType::YEARN => GoatHornTypeIds::YEARN, | ||
GoatHornType::DREAM => GoatHornTypeIds::DREAM | ||
}, $case); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/* | ||
* | ||
* ____ _ _ __ __ _ __ __ ____ | ||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ | ||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | | ||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ | ||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* @author PocketMine Team | ||
* @link http://www.pocketmine.net/ | ||
* | ||
* | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace pocketmine\data\bedrock; | ||
|
||
final class GoatHornTypeIds{ | ||
public const PONDER = 0; | ||
public const SING = 1; | ||
public const SEEK = 2; | ||
public const FEEL = 3; | ||
public const ADMIRE = 4; | ||
public const CALL = 5; | ||
public const YEARN = 6; | ||
public const DREAM = 7; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.