-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cca188e
commit cd626cd
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright (c) 2021 brokiem | ||
* SimpleNPC is licensed under the GNU Lesser General Public License v3.0 | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace brokiem\snpc\entity\npc; | ||
|
||
use brokiem\snpc\entity\BaseNPC; | ||
use pocketmine\entity\EntitySizeInfo; | ||
use pocketmine\network\mcpe\protocol\types\entity\EntityIds; | ||
|
||
class BBGuardian extends BaseNPC { | ||
|
||
public float $height = 2; | ||
public float $width = 2; | ||
|
||
protected function getInitialSizeInfo(): EntitySizeInfo { | ||
return new EntitySizeInfo($this->height, $this->width); | ||
} | ||
|
||
public static function getNetworkTypeId(): string { | ||
return EntityIds::ELDER_GUARDIAN; | ||
} | ||
} |
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