mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 04:05:31 +00:00
Make some item constructor variant parameters mandatory
This commit is contained in:
parent
51e13104dc
commit
f438736af5
@ -37,7 +37,7 @@ class Banner extends Item{
|
|||||||
public const TAG_PATTERN_COLOR = TileBanner::TAG_PATTERN_COLOR;
|
public const TAG_PATTERN_COLOR = TileBanner::TAG_PATTERN_COLOR;
|
||||||
public const TAG_PATTERN_NAME = TileBanner::TAG_PATTERN_NAME;
|
public const TAG_PATTERN_NAME = TileBanner::TAG_PATTERN_NAME;
|
||||||
|
|
||||||
public function __construct(int $meta = 0){
|
public function __construct(int $meta){
|
||||||
parent::__construct(self::BANNER, $meta, "Banner");
|
parent::__construct(self::BANNER, $meta, "Banner");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ use pocketmine\block\Block;
|
|||||||
use pocketmine\block\BlockFactory;
|
use pocketmine\block\BlockFactory;
|
||||||
|
|
||||||
class Bed extends Item{
|
class Bed extends Item{
|
||||||
public function __construct(int $meta = 0){
|
public function __construct(int $meta){
|
||||||
parent::__construct(self::BED, $meta, "Bed");
|
parent::__construct(self::BED, $meta, "Bed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ use pocketmine\block\Block;
|
|||||||
use pocketmine\block\BlockFactory;
|
use pocketmine\block\BlockFactory;
|
||||||
|
|
||||||
class Dye extends Item{
|
class Dye extends Item{
|
||||||
public function __construct(int $meta = 0){
|
public function __construct(int $meta){
|
||||||
parent::__construct(self::DYE, $meta, "Dye");
|
parent::__construct(self::DYE, $meta, "Dye");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ class Potion extends Item implements Consumable{
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct(int $meta = 0){
|
public function __construct(int $meta){
|
||||||
parent::__construct(self::POTION, $meta, "Potion");
|
parent::__construct(self::POTION, $meta, "Potion");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ use pocketmine\nbt\tag\CompoundTag;
|
|||||||
|
|
||||||
class SplashPotion extends ProjectileItem{
|
class SplashPotion extends ProjectileItem{
|
||||||
|
|
||||||
public function __construct(int $meta = 0){
|
public function __construct(int $meta){
|
||||||
parent::__construct(self::SPLASH_POTION, $meta, "Splash Potion");
|
parent::__construct(self::SPLASH_POTION, $meta, "Splash Potion");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user