diff --git a/src/pocketmine/item/Apple.php b/src/pocketmine/item/Apple.php index b0c4ccd12..eea93a02f 100644 --- a/src/pocketmine/item/Apple.php +++ b/src/pocketmine/item/Apple.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class Apple extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::APPLE, $meta, "Apple"); + public function __construct(){ + parent::__construct(self::APPLE, 0, "Apple"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Arrow.php b/src/pocketmine/item/Arrow.php index 31b73b725..dab935e87 100644 --- a/src/pocketmine/item/Arrow.php +++ b/src/pocketmine/item/Arrow.php @@ -24,7 +24,7 @@ declare(strict_types=1); namespace pocketmine\item; class Arrow extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::ARROW, $meta, "Arrow"); + public function __construct(){ + parent::__construct(self::ARROW, 0, "Arrow"); } } diff --git a/src/pocketmine/item/BakedPotato.php b/src/pocketmine/item/BakedPotato.php index 5c3147137..95b45e682 100644 --- a/src/pocketmine/item/BakedPotato.php +++ b/src/pocketmine/item/BakedPotato.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class BakedPotato extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::BAKED_POTATO, $meta, "Baked Potato"); + public function __construct(){ + parent::__construct(self::BAKED_POTATO, 0, "Baked Potato"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Beetroot.php b/src/pocketmine/item/Beetroot.php index 21f95a3d3..aa6d2e7a3 100644 --- a/src/pocketmine/item/Beetroot.php +++ b/src/pocketmine/item/Beetroot.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Beetroot extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::BEETROOT, $meta, "Beetroot"); + public function __construct(){ + parent::__construct(self::BEETROOT, 0, "Beetroot"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/BeetrootSeeds.php b/src/pocketmine/item/BeetrootSeeds.php index 3e3c091a7..0243fd6d6 100644 --- a/src/pocketmine/item/BeetrootSeeds.php +++ b/src/pocketmine/item/BeetrootSeeds.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class BeetrootSeeds extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::BEETROOT_SEEDS, $meta, "Beetroot Seeds"); + public function __construct(){ + parent::__construct(self::BEETROOT_SEEDS, 0, "Beetroot Seeds"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/BeetrootSoup.php b/src/pocketmine/item/BeetrootSoup.php index 294698d26..0f805fb56 100644 --- a/src/pocketmine/item/BeetrootSoup.php +++ b/src/pocketmine/item/BeetrootSoup.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class BeetrootSoup extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::BEETROOT_SOUP, $meta, "Beetroot Soup"); + public function __construct(){ + parent::__construct(self::BEETROOT_SOUP, 0, "Beetroot Soup"); } public function getMaxStackSize() : int{ diff --git a/src/pocketmine/item/BlazeRod.php b/src/pocketmine/item/BlazeRod.php index c9276ea68..98e55369b 100644 --- a/src/pocketmine/item/BlazeRod.php +++ b/src/pocketmine/item/BlazeRod.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class BlazeRod extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::BLAZE_ROD, $meta, "Blaze Rod"); + public function __construct(){ + parent::__construct(self::BLAZE_ROD, 0, "Blaze Rod"); } public function getFuelTime() : int{ diff --git a/src/pocketmine/item/Boat.php b/src/pocketmine/item/Boat.php index 35c05d997..cfff0224a 100644 --- a/src/pocketmine/item/Boat.php +++ b/src/pocketmine/item/Boat.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Boat extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::BOAT, $meta, "Boat"); + public function __construct(){ + parent::__construct(self::BOAT, 0, "Boat"); } public function getFuelTime() : int{ diff --git a/src/pocketmine/item/Book.php b/src/pocketmine/item/Book.php index 8aec5186e..002fb5c84 100644 --- a/src/pocketmine/item/Book.php +++ b/src/pocketmine/item/Book.php @@ -24,7 +24,7 @@ declare(strict_types=1); namespace pocketmine\item; class Book extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::BOOK, $meta, "Book"); + public function __construct(){ + parent::__construct(self::BOOK, 0, "Book"); } } diff --git a/src/pocketmine/item/Bow.php b/src/pocketmine/item/Bow.php index 60aed426d..faf7f4995 100644 --- a/src/pocketmine/item/Bow.php +++ b/src/pocketmine/item/Bow.php @@ -33,8 +33,8 @@ use pocketmine\network\mcpe\protocol\LevelSoundEventPacket; use pocketmine\Player; class Bow extends Tool{ - public function __construct(int $meta = 0){ - parent::__construct(self::BOW, $meta, "Bow"); + public function __construct(){ + parent::__construct(self::BOW, 0, "Bow"); } public function getFuelTime() : int{ diff --git a/src/pocketmine/item/Bowl.php b/src/pocketmine/item/Bowl.php index 67a81ae40..e2b4a6bf5 100644 --- a/src/pocketmine/item/Bowl.php +++ b/src/pocketmine/item/Bowl.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class Bowl extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::BOWL, $meta, "Bowl"); + public function __construct(){ + parent::__construct(self::BOWL, 0, "Bowl"); } //TODO: check fuel diff --git a/src/pocketmine/item/Bread.php b/src/pocketmine/item/Bread.php index 5e70816d3..ad6bd73c1 100644 --- a/src/pocketmine/item/Bread.php +++ b/src/pocketmine/item/Bread.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Bread extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::BREAD, $meta, "Bread"); + public function __construct(){ + parent::__construct(self::BREAD, 0, "Bread"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Carrot.php b/src/pocketmine/item/Carrot.php index 24b525fdb..fb70484ed 100644 --- a/src/pocketmine/item/Carrot.php +++ b/src/pocketmine/item/Carrot.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class Carrot extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::CARROT, $meta, "Carrot"); + public function __construct(){ + parent::__construct(self::CARROT, 0, "Carrot"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/ChainBoots.php b/src/pocketmine/item/ChainBoots.php index 141aefc8c..904891773 100644 --- a/src/pocketmine/item/ChainBoots.php +++ b/src/pocketmine/item/ChainBoots.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class ChainBoots extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::CHAIN_BOOTS, $meta, "Chainmail Boots"); + public function __construct(){ + parent::__construct(self::CHAIN_BOOTS, 0, "Chainmail Boots"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/ChainChestplate.php b/src/pocketmine/item/ChainChestplate.php index 2f1453fc9..0e1f90a1b 100644 --- a/src/pocketmine/item/ChainChestplate.php +++ b/src/pocketmine/item/ChainChestplate.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class ChainChestplate extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::CHAIN_CHESTPLATE, $meta, "Chain Chestplate"); + public function __construct(){ + parent::__construct(self::CHAIN_CHESTPLATE, 0, "Chain Chestplate"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/ChainHelmet.php b/src/pocketmine/item/ChainHelmet.php index b949a72ff..8714f2e31 100644 --- a/src/pocketmine/item/ChainHelmet.php +++ b/src/pocketmine/item/ChainHelmet.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class ChainHelmet extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::CHAIN_HELMET, $meta, "Chainmail Helmet"); + public function __construct(){ + parent::__construct(self::CHAIN_HELMET, 0, "Chainmail Helmet"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/ChainLeggings.php b/src/pocketmine/item/ChainLeggings.php index e4882f06b..f3daf3710 100644 --- a/src/pocketmine/item/ChainLeggings.php +++ b/src/pocketmine/item/ChainLeggings.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class ChainLeggings extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::CHAIN_LEGGINGS, $meta, "Chain Leggings"); + public function __construct(){ + parent::__construct(self::CHAIN_LEGGINGS, 0, "Chain Leggings"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/ChorusFruit.php b/src/pocketmine/item/ChorusFruit.php index 1e91ea052..7c9b34ed4 100644 --- a/src/pocketmine/item/ChorusFruit.php +++ b/src/pocketmine/item/ChorusFruit.php @@ -30,8 +30,8 @@ use pocketmine\math\Vector3; class ChorusFruit extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::CHORUS_FRUIT, $meta, "Chorus Fruit"); + public function __construct(){ + parent::__construct(self::CHORUS_FRUIT, 0, "Chorus Fruit"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Clock.php b/src/pocketmine/item/Clock.php index d2769167e..0c3265728 100644 --- a/src/pocketmine/item/Clock.php +++ b/src/pocketmine/item/Clock.php @@ -24,7 +24,7 @@ declare(strict_types=1); namespace pocketmine\item; class Clock extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::CLOCK, $meta, "Clock"); + public function __construct(){ + parent::__construct(self::CLOCK, 0, "Clock"); } } diff --git a/src/pocketmine/item/Clownfish.php b/src/pocketmine/item/Clownfish.php index 4cd83e100..e776dbcdf 100644 --- a/src/pocketmine/item/Clownfish.php +++ b/src/pocketmine/item/Clownfish.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Clownfish extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::CLOWNFISH, $meta, "Clownfish"); + public function __construct(){ + parent::__construct(self::CLOWNFISH, 0, "Clownfish"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Compass.php b/src/pocketmine/item/Compass.php index 1469e71b4..5eccdbfc4 100644 --- a/src/pocketmine/item/Compass.php +++ b/src/pocketmine/item/Compass.php @@ -24,7 +24,7 @@ declare(strict_types=1); namespace pocketmine\item; class Compass extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::COMPASS, $meta, "Compass"); + public function __construct(){ + parent::__construct(self::COMPASS, 0, "Compass"); } } diff --git a/src/pocketmine/item/CookedChicken.php b/src/pocketmine/item/CookedChicken.php index 69ee857cf..d72fd0192 100644 --- a/src/pocketmine/item/CookedChicken.php +++ b/src/pocketmine/item/CookedChicken.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class CookedChicken extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKED_CHICKEN, $meta, "Cooked Chicken"); + public function __construct(){ + parent::__construct(self::COOKED_CHICKEN, 0, "Cooked Chicken"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/CookedFish.php b/src/pocketmine/item/CookedFish.php index ec5e30ef6..bd28be171 100644 --- a/src/pocketmine/item/CookedFish.php +++ b/src/pocketmine/item/CookedFish.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class CookedFish extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKED_FISH, $meta, "Cooked Fish"); + public function __construct(){ + parent::__construct(self::COOKED_FISH, 0, "Cooked Fish"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/CookedMutton.php b/src/pocketmine/item/CookedMutton.php index 889c57d32..152cb75c6 100644 --- a/src/pocketmine/item/CookedMutton.php +++ b/src/pocketmine/item/CookedMutton.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class CookedMutton extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKED_MUTTON, $meta, "Cooked Mutton"); + public function __construct(){ + parent::__construct(self::COOKED_MUTTON, 0, "Cooked Mutton"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/CookedPorkchop.php b/src/pocketmine/item/CookedPorkchop.php index fcf2af326..649551c8d 100644 --- a/src/pocketmine/item/CookedPorkchop.php +++ b/src/pocketmine/item/CookedPorkchop.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class CookedPorkchop extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKED_PORKCHOP, $meta, "Cooked Porkchop"); + public function __construct(){ + parent::__construct(self::COOKED_PORKCHOP, 0, "Cooked Porkchop"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/CookedRabbit.php b/src/pocketmine/item/CookedRabbit.php index c94543fc3..03e5077fb 100644 --- a/src/pocketmine/item/CookedRabbit.php +++ b/src/pocketmine/item/CookedRabbit.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class CookedRabbit extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKED_RABBIT, $meta, "Cooked Rabbit"); + public function __construct(){ + parent::__construct(self::COOKED_RABBIT, 0, "Cooked Rabbit"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/CookedSalmon.php b/src/pocketmine/item/CookedSalmon.php index 6b32e667b..f1e701398 100644 --- a/src/pocketmine/item/CookedSalmon.php +++ b/src/pocketmine/item/CookedSalmon.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class CookedSalmon extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKED_SALMON, $meta, "Cooked Salmon"); + public function __construct(){ + parent::__construct(self::COOKED_SALMON, 0, "Cooked Salmon"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Cookie.php b/src/pocketmine/item/Cookie.php index f8c0bd468..6dc546870 100644 --- a/src/pocketmine/item/Cookie.php +++ b/src/pocketmine/item/Cookie.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Cookie extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::COOKIE, $meta, "Cookie"); + public function __construct(){ + parent::__construct(self::COOKIE, 0, "Cookie"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/DiamondBoots.php b/src/pocketmine/item/DiamondBoots.php index 25b79761d..4cb849d60 100644 --- a/src/pocketmine/item/DiamondBoots.php +++ b/src/pocketmine/item/DiamondBoots.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class DiamondBoots extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::DIAMOND_BOOTS, $meta, "Diamond Boots"); + public function __construct(){ + parent::__construct(self::DIAMOND_BOOTS, 0, "Diamond Boots"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/DiamondChestplate.php b/src/pocketmine/item/DiamondChestplate.php index 778aa6ba9..8a1ce917b 100644 --- a/src/pocketmine/item/DiamondChestplate.php +++ b/src/pocketmine/item/DiamondChestplate.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class DiamondChestplate extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::DIAMOND_CHESTPLATE, $meta, "Diamond Chestplate"); + public function __construct(){ + parent::__construct(self::DIAMOND_CHESTPLATE, 0, "Diamond Chestplate"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/DiamondHelmet.php b/src/pocketmine/item/DiamondHelmet.php index c5f652cc6..662aef6a9 100644 --- a/src/pocketmine/item/DiamondHelmet.php +++ b/src/pocketmine/item/DiamondHelmet.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class DiamondHelmet extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::DIAMOND_HELMET, $meta, "Diamond Helmet"); + public function __construct(){ + parent::__construct(self::DIAMOND_HELMET, 0, "Diamond Helmet"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/DiamondLeggings.php b/src/pocketmine/item/DiamondLeggings.php index 6f7613c6f..e1662a710 100644 --- a/src/pocketmine/item/DiamondLeggings.php +++ b/src/pocketmine/item/DiamondLeggings.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class DiamondLeggings extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::DIAMOND_LEGGINGS, $meta, "Diamond Leggings"); + public function __construct(){ + parent::__construct(self::DIAMOND_LEGGINGS, 0, "Diamond Leggings"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/DriedKelp.php b/src/pocketmine/item/DriedKelp.php index ae4fe8724..24b914db5 100644 --- a/src/pocketmine/item/DriedKelp.php +++ b/src/pocketmine/item/DriedKelp.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class DriedKelp extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::DRIED_KELP, $meta, "Dried Kelp"); + public function __construct(){ + parent::__construct(self::DRIED_KELP, 0, "Dried Kelp"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/EnderPearl.php b/src/pocketmine/item/EnderPearl.php index ec0e9d788..5b375a391 100644 --- a/src/pocketmine/item/EnderPearl.php +++ b/src/pocketmine/item/EnderPearl.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class EnderPearl extends ProjectileItem{ - public function __construct(int $meta = 0){ - parent::__construct(self::ENDER_PEARL, $meta, "Ender Pearl"); + public function __construct(){ + parent::__construct(self::ENDER_PEARL, 0, "Ender Pearl"); } public function getMaxStackSize() : int{ diff --git a/src/pocketmine/item/ExperienceBottle.php b/src/pocketmine/item/ExperienceBottle.php index 5158cd06b..277957ec6 100644 --- a/src/pocketmine/item/ExperienceBottle.php +++ b/src/pocketmine/item/ExperienceBottle.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class ExperienceBottle extends ProjectileItem{ - public function __construct(int $meta = 0){ - parent::__construct(self::EXPERIENCE_BOTTLE, $meta, "Bottle o' Enchanting"); + public function __construct(){ + parent::__construct(self::EXPERIENCE_BOTTLE, 0, "Bottle o' Enchanting"); } public function getProjectileEntityType() : string{ diff --git a/src/pocketmine/item/FishingRod.php b/src/pocketmine/item/FishingRod.php index 85991e5e9..8909de54e 100644 --- a/src/pocketmine/item/FishingRod.php +++ b/src/pocketmine/item/FishingRod.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class FishingRod extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::FISHING_ROD, $meta, "Fishing Rod"); + public function __construct(){ + parent::__construct(self::FISHING_ROD, 0, "Fishing Rod"); } //TODO diff --git a/src/pocketmine/item/FlintSteel.php b/src/pocketmine/item/FlintSteel.php index ac9cb1456..946a48088 100644 --- a/src/pocketmine/item/FlintSteel.php +++ b/src/pocketmine/item/FlintSteel.php @@ -30,8 +30,8 @@ use pocketmine\network\mcpe\protocol\LevelSoundEventPacket; use pocketmine\Player; class FlintSteel extends Tool{ - public function __construct(int $meta = 0){ - parent::__construct(self::FLINT_STEEL, $meta, "Flint and Steel"); + public function __construct(){ + parent::__construct(self::FLINT_STEEL, 0, "Flint and Steel"); } public function onActivate(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : bool{ diff --git a/src/pocketmine/item/GlassBottle.php b/src/pocketmine/item/GlassBottle.php index 682eecacf..895753142 100644 --- a/src/pocketmine/item/GlassBottle.php +++ b/src/pocketmine/item/GlassBottle.php @@ -24,7 +24,7 @@ declare(strict_types=1); namespace pocketmine\item; class GlassBottle extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::GLASS_BOTTLE, $meta, "Glass Bottle"); + public function __construct(){ + parent::__construct(self::GLASS_BOTTLE, 0, "Glass Bottle"); } } diff --git a/src/pocketmine/item/GoldBoots.php b/src/pocketmine/item/GoldBoots.php index cb039b52d..038639fa3 100644 --- a/src/pocketmine/item/GoldBoots.php +++ b/src/pocketmine/item/GoldBoots.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class GoldBoots extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::GOLD_BOOTS, $meta, "Gold Boots"); + public function __construct(){ + parent::__construct(self::GOLD_BOOTS, 0, "Gold Boots"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/GoldChestplate.php b/src/pocketmine/item/GoldChestplate.php index 74bed00ac..449b1df15 100644 --- a/src/pocketmine/item/GoldChestplate.php +++ b/src/pocketmine/item/GoldChestplate.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class GoldChestplate extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::GOLD_CHESTPLATE, $meta, "Gold Chestplate"); + public function __construct(){ + parent::__construct(self::GOLD_CHESTPLATE, 0, "Gold Chestplate"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/GoldHelmet.php b/src/pocketmine/item/GoldHelmet.php index 043c363a2..3533be19f 100644 --- a/src/pocketmine/item/GoldHelmet.php +++ b/src/pocketmine/item/GoldHelmet.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class GoldHelmet extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::GOLD_HELMET, $meta, "Gold Helmet"); + public function __construct(){ + parent::__construct(self::GOLD_HELMET, 0, "Gold Helmet"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/GoldLeggings.php b/src/pocketmine/item/GoldLeggings.php index 47b675259..2a54f7b02 100644 --- a/src/pocketmine/item/GoldLeggings.php +++ b/src/pocketmine/item/GoldLeggings.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class GoldLeggings extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::GOLD_LEGGINGS, $meta, "Gold Leggings"); + public function __construct(){ + parent::__construct(self::GOLD_LEGGINGS, 0, "Gold Leggings"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/GoldenApple.php b/src/pocketmine/item/GoldenApple.php index dbd3550d2..4bd1c3fb9 100644 --- a/src/pocketmine/item/GoldenApple.php +++ b/src/pocketmine/item/GoldenApple.php @@ -28,8 +28,8 @@ use pocketmine\entity\EffectInstance; class GoldenApple extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::GOLDEN_APPLE, $meta, "Golden Apple"); + public function __construct(){ + parent::__construct(self::GOLDEN_APPLE, 0, "Golden Apple"); } public function requiresHunger() : bool{ diff --git a/src/pocketmine/item/GoldenAppleEnchanted.php b/src/pocketmine/item/GoldenAppleEnchanted.php index 4961d8498..b5d8bc305 100644 --- a/src/pocketmine/item/GoldenAppleEnchanted.php +++ b/src/pocketmine/item/GoldenAppleEnchanted.php @@ -28,8 +28,8 @@ use pocketmine\entity\EffectInstance; class GoldenAppleEnchanted extends GoldenApple{ - public function __construct(int $meta = 0){ - Food::__construct(self::ENCHANTED_GOLDEN_APPLE, $meta, "Enchanted Golden Apple"); //skip parent constructor + public function __construct(){ + Food::__construct(self::ENCHANTED_GOLDEN_APPLE, 0, "Enchanted Golden Apple"); //skip parent constructor } public function getAdditionalEffects() : array{ diff --git a/src/pocketmine/item/GoldenCarrot.php b/src/pocketmine/item/GoldenCarrot.php index 78b99ab74..06d327bca 100644 --- a/src/pocketmine/item/GoldenCarrot.php +++ b/src/pocketmine/item/GoldenCarrot.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class GoldenCarrot extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::GOLDEN_CARROT, $meta, "Golden Carrot"); + public function __construct(){ + parent::__construct(self::GOLDEN_CARROT, 0, "Golden Carrot"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/IronBoots.php b/src/pocketmine/item/IronBoots.php index a11639468..322da7869 100644 --- a/src/pocketmine/item/IronBoots.php +++ b/src/pocketmine/item/IronBoots.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class IronBoots extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::IRON_BOOTS, $meta, "Iron Boots"); + public function __construct(){ + parent::__construct(self::IRON_BOOTS, 0, "Iron Boots"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/IronChestplate.php b/src/pocketmine/item/IronChestplate.php index 2cb881478..8879b71f2 100644 --- a/src/pocketmine/item/IronChestplate.php +++ b/src/pocketmine/item/IronChestplate.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class IronChestplate extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::IRON_CHESTPLATE, $meta, "Iron Chestplate"); + public function __construct(){ + parent::__construct(self::IRON_CHESTPLATE, 0, "Iron Chestplate"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/IronHelmet.php b/src/pocketmine/item/IronHelmet.php index 74875d29e..187daed0b 100644 --- a/src/pocketmine/item/IronHelmet.php +++ b/src/pocketmine/item/IronHelmet.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class IronHelmet extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::IRON_HELMET, $meta, "Iron Helmet"); + public function __construct(){ + parent::__construct(self::IRON_HELMET, 0, "Iron Helmet"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/IronLeggings.php b/src/pocketmine/item/IronLeggings.php index 655248f99..8ab4c5d2d 100644 --- a/src/pocketmine/item/IronLeggings.php +++ b/src/pocketmine/item/IronLeggings.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class IronLeggings extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::IRON_LEGGINGS, $meta, "Iron Leggings"); + public function __construct(){ + parent::__construct(self::IRON_LEGGINGS, 0, "Iron Leggings"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/LeatherBoots.php b/src/pocketmine/item/LeatherBoots.php index 4c93de806..1fc036d9f 100644 --- a/src/pocketmine/item/LeatherBoots.php +++ b/src/pocketmine/item/LeatherBoots.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class LeatherBoots extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::LEATHER_BOOTS, $meta, "Leather Boots"); + public function __construct(){ + parent::__construct(self::LEATHER_BOOTS, 0, "Leather Boots"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/LeatherCap.php b/src/pocketmine/item/LeatherCap.php index 3b2c0653d..37805e80e 100644 --- a/src/pocketmine/item/LeatherCap.php +++ b/src/pocketmine/item/LeatherCap.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class LeatherCap extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::LEATHER_CAP, $meta, "Leather Cap"); + public function __construct(){ + parent::__construct(self::LEATHER_CAP, 0, "Leather Cap"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/LeatherPants.php b/src/pocketmine/item/LeatherPants.php index 05ee76ca7..5ef56c79a 100644 --- a/src/pocketmine/item/LeatherPants.php +++ b/src/pocketmine/item/LeatherPants.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class LeatherPants extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::LEATHER_PANTS, $meta, "Leather Pants"); + public function __construct(){ + parent::__construct(self::LEATHER_PANTS, 0, "Leather Pants"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/LeatherTunic.php b/src/pocketmine/item/LeatherTunic.php index d587f2eaa..c57707c4c 100644 --- a/src/pocketmine/item/LeatherTunic.php +++ b/src/pocketmine/item/LeatherTunic.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class LeatherTunic extends Armor{ - public function __construct(int $meta = 0){ - parent::__construct(self::LEATHER_TUNIC, $meta, "Leather Tunic"); + public function __construct(){ + parent::__construct(self::LEATHER_TUNIC, 0, "Leather Tunic"); } public function getDefensePoints() : int{ diff --git a/src/pocketmine/item/Melon.php b/src/pocketmine/item/Melon.php index 104fa10d6..0a4c5cedc 100644 --- a/src/pocketmine/item/Melon.php +++ b/src/pocketmine/item/Melon.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Melon extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::MELON, $meta, "Melon"); + public function __construct(){ + parent::__construct(self::MELON, 0, "Melon"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/MelonSeeds.php b/src/pocketmine/item/MelonSeeds.php index a536f9396..0f359b9db 100644 --- a/src/pocketmine/item/MelonSeeds.php +++ b/src/pocketmine/item/MelonSeeds.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class MelonSeeds extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::MELON_SEEDS, $meta, "Melon Seeds"); + public function __construct(){ + parent::__construct(self::MELON_SEEDS, 0, "Melon Seeds"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/Minecart.php b/src/pocketmine/item/Minecart.php index bba2b997d..ec9bbcbe9 100644 --- a/src/pocketmine/item/Minecart.php +++ b/src/pocketmine/item/Minecart.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Minecart extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::MINECART, $meta, "Minecart"); + public function __construct(){ + parent::__construct(self::MINECART, 0, "Minecart"); } //TODO diff --git a/src/pocketmine/item/MushroomStew.php b/src/pocketmine/item/MushroomStew.php index a3776393d..abba737a5 100644 --- a/src/pocketmine/item/MushroomStew.php +++ b/src/pocketmine/item/MushroomStew.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class MushroomStew extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::MUSHROOM_STEW, $meta, "Mushroom Stew"); + public function __construct(){ + parent::__construct(self::MUSHROOM_STEW, 0, "Mushroom Stew"); } public function getMaxStackSize() : int{ diff --git a/src/pocketmine/item/PaintingItem.php b/src/pocketmine/item/PaintingItem.php index 1c7085b41..a642c41de 100644 --- a/src/pocketmine/item/PaintingItem.php +++ b/src/pocketmine/item/PaintingItem.php @@ -33,8 +33,8 @@ use pocketmine\network\mcpe\protocol\LevelEventPacket; use pocketmine\Player; class PaintingItem extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::PAINTING, $meta, "Painting"); + public function __construct(){ + parent::__construct(self::PAINTING, 0, "Painting"); } public function onActivate(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : bool{ diff --git a/src/pocketmine/item/PoisonousPotato.php b/src/pocketmine/item/PoisonousPotato.php index e98703e5b..82ebf64fa 100644 --- a/src/pocketmine/item/PoisonousPotato.php +++ b/src/pocketmine/item/PoisonousPotato.php @@ -27,8 +27,8 @@ use pocketmine\entity\Effect; use pocketmine\entity\EffectInstance; class PoisonousPotato extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::POISONOUS_POTATO, $meta, "Poisonous Potato"); + public function __construct(){ + parent::__construct(self::POISONOUS_POTATO, 0, "Poisonous Potato"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Potato.php b/src/pocketmine/item/Potato.php index b2531bb7d..f7278e93e 100644 --- a/src/pocketmine/item/Potato.php +++ b/src/pocketmine/item/Potato.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class Potato extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::POTATO, $meta, "Potato"); + public function __construct(){ + parent::__construct(self::POTATO, 0, "Potato"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/Pufferfish.php b/src/pocketmine/item/Pufferfish.php index cef122f93..12d3a4c98 100644 --- a/src/pocketmine/item/Pufferfish.php +++ b/src/pocketmine/item/Pufferfish.php @@ -27,8 +27,8 @@ use pocketmine\entity\Effect; use pocketmine\entity\EffectInstance; class Pufferfish extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::PUFFERFISH, $meta, "Pufferfish"); + public function __construct(){ + parent::__construct(self::PUFFERFISH, 0, "Pufferfish"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/PumpkinPie.php b/src/pocketmine/item/PumpkinPie.php index 69a1f7486..90628dd68 100644 --- a/src/pocketmine/item/PumpkinPie.php +++ b/src/pocketmine/item/PumpkinPie.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class PumpkinPie extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::PUMPKIN_PIE, $meta, "Pumpkin Pie"); + public function __construct(){ + parent::__construct(self::PUMPKIN_PIE, 0, "Pumpkin Pie"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/PumpkinSeeds.php b/src/pocketmine/item/PumpkinSeeds.php index ec8e840bd..01ec1a6e1 100644 --- a/src/pocketmine/item/PumpkinSeeds.php +++ b/src/pocketmine/item/PumpkinSeeds.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class PumpkinSeeds extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::PUMPKIN_SEEDS, $meta, "Pumpkin Seeds"); + public function __construct(){ + parent::__construct(self::PUMPKIN_SEEDS, 0, "Pumpkin Seeds"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/RabbitStew.php b/src/pocketmine/item/RabbitStew.php index acdf635ff..9161d888a 100644 --- a/src/pocketmine/item/RabbitStew.php +++ b/src/pocketmine/item/RabbitStew.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RabbitStew extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RABBIT_STEW, $meta, "Rabbit Stew"); + public function __construct(){ + parent::__construct(self::RABBIT_STEW, 0, "Rabbit Stew"); } public function getMaxStackSize() : int{ diff --git a/src/pocketmine/item/RawBeef.php b/src/pocketmine/item/RawBeef.php index 0e1a3a8b7..59aa7e9c3 100644 --- a/src/pocketmine/item/RawBeef.php +++ b/src/pocketmine/item/RawBeef.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RawBeef extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_BEEF, $meta, "Raw Beef"); + public function __construct(){ + parent::__construct(self::RAW_BEEF, 0, "Raw Beef"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/RawChicken.php b/src/pocketmine/item/RawChicken.php index df430e2ef..79b57e1e7 100644 --- a/src/pocketmine/item/RawChicken.php +++ b/src/pocketmine/item/RawChicken.php @@ -27,8 +27,8 @@ use pocketmine\entity\Effect; use pocketmine\entity\EffectInstance; class RawChicken extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_CHICKEN, $meta, "Raw Chicken"); + public function __construct(){ + parent::__construct(self::RAW_CHICKEN, 0, "Raw Chicken"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/RawFish.php b/src/pocketmine/item/RawFish.php index 0ecfe970e..54da485c1 100644 --- a/src/pocketmine/item/RawFish.php +++ b/src/pocketmine/item/RawFish.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RawFish extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_FISH, $meta, "Raw Fish"); + public function __construct(){ + parent::__construct(self::RAW_FISH, 0, "Raw Fish"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/RawMutton.php b/src/pocketmine/item/RawMutton.php index 7812bfe5f..125f901a5 100644 --- a/src/pocketmine/item/RawMutton.php +++ b/src/pocketmine/item/RawMutton.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RawMutton extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_MUTTON, $meta, "Raw Mutton"); + public function __construct(){ + parent::__construct(self::RAW_MUTTON, 0, "Raw Mutton"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/RawPorkchop.php b/src/pocketmine/item/RawPorkchop.php index 85ccd69d6..fa28f5929 100644 --- a/src/pocketmine/item/RawPorkchop.php +++ b/src/pocketmine/item/RawPorkchop.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RawPorkchop extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_PORKCHOP, $meta, "Raw Porkchop"); + public function __construct(){ + parent::__construct(self::RAW_PORKCHOP, 0, "Raw Porkchop"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/RawRabbit.php b/src/pocketmine/item/RawRabbit.php index f3b9380fb..2234c60a2 100644 --- a/src/pocketmine/item/RawRabbit.php +++ b/src/pocketmine/item/RawRabbit.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RawRabbit extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_RABBIT, $meta, "Raw Rabbit"); + public function __construct(){ + parent::__construct(self::RAW_RABBIT, 0, "Raw Rabbit"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/RawSalmon.php b/src/pocketmine/item/RawSalmon.php index c702d3869..d8b2375f9 100644 --- a/src/pocketmine/item/RawSalmon.php +++ b/src/pocketmine/item/RawSalmon.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class RawSalmon extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::RAW_SALMON, $meta, "Raw Salmon"); + public function __construct(){ + parent::__construct(self::RAW_SALMON, 0, "Raw Salmon"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Redstone.php b/src/pocketmine/item/Redstone.php index 9826b4e67..a67f8365a 100644 --- a/src/pocketmine/item/Redstone.php +++ b/src/pocketmine/item/Redstone.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class Redstone extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::REDSTONE, $meta, "Redstone"); + public function __construct(){ + parent::__construct(self::REDSTONE, 0, "Redstone"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/RottenFlesh.php b/src/pocketmine/item/RottenFlesh.php index 223f7452e..9a928edaf 100644 --- a/src/pocketmine/item/RottenFlesh.php +++ b/src/pocketmine/item/RottenFlesh.php @@ -28,8 +28,8 @@ use pocketmine\entity\EffectInstance; class RottenFlesh extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::ROTTEN_FLESH, $meta, "Rotten Flesh"); + public function __construct(){ + parent::__construct(self::ROTTEN_FLESH, 0, "Rotten Flesh"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Shears.php b/src/pocketmine/item/Shears.php index 04a5b9d55..4bd563e8e 100644 --- a/src/pocketmine/item/Shears.php +++ b/src/pocketmine/item/Shears.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockToolType; class Shears extends Tool{ - public function __construct(int $meta = 0){ - parent::__construct(self::SHEARS, $meta, "Shears"); + public function __construct(){ + parent::__construct(self::SHEARS, 0, "Shears"); } public function getMaxDurability() : int{ diff --git a/src/pocketmine/item/Sign.php b/src/pocketmine/item/Sign.php index 56a06749d..723c460b6 100644 --- a/src/pocketmine/item/Sign.php +++ b/src/pocketmine/item/Sign.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class Sign extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::SIGN, $meta, "Sign"); + public function __construct(){ + parent::__construct(self::SIGN, 0, "Sign"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/Snowball.php b/src/pocketmine/item/Snowball.php index 1e2fc00d1..c13f9abd7 100644 --- a/src/pocketmine/item/Snowball.php +++ b/src/pocketmine/item/Snowball.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Snowball extends ProjectileItem{ - public function __construct(int $meta = 0){ - parent::__construct(self::SNOWBALL, $meta, "Snowball"); + public function __construct(){ + parent::__construct(self::SNOWBALL, 0, "Snowball"); } public function getMaxStackSize() : int{ diff --git a/src/pocketmine/item/SpiderEye.php b/src/pocketmine/item/SpiderEye.php index 4feea931b..2e386afb5 100644 --- a/src/pocketmine/item/SpiderEye.php +++ b/src/pocketmine/item/SpiderEye.php @@ -27,8 +27,8 @@ use pocketmine\entity\Effect; use pocketmine\entity\EffectInstance; class SpiderEye extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::SPIDER_EYE, $meta, "Spider Eye"); + public function __construct(){ + parent::__construct(self::SPIDER_EYE, 0, "Spider Eye"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Steak.php b/src/pocketmine/item/Steak.php index 57ec814a1..1e5ed99f0 100644 --- a/src/pocketmine/item/Steak.php +++ b/src/pocketmine/item/Steak.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Steak extends Food{ - public function __construct(int $meta = 0){ - parent::__construct(self::STEAK, $meta, "Steak"); + public function __construct(){ + parent::__construct(self::STEAK, 0, "Steak"); } public function getFoodRestore() : int{ diff --git a/src/pocketmine/item/Stick.php b/src/pocketmine/item/Stick.php index b3dd1c92c..4bbb63bf2 100644 --- a/src/pocketmine/item/Stick.php +++ b/src/pocketmine/item/Stick.php @@ -25,8 +25,8 @@ namespace pocketmine\item; class Stick extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::STICK, $meta, "Stick"); + public function __construct(){ + parent::__construct(self::STICK, 0, "Stick"); } public function getFuelTime() : int{ diff --git a/src/pocketmine/item/StringItem.php b/src/pocketmine/item/StringItem.php index eb5868a21..c3023b82c 100644 --- a/src/pocketmine/item/StringItem.php +++ b/src/pocketmine/item/StringItem.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class StringItem extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::STRING, $meta, "String"); + public function __construct(){ + parent::__construct(self::STRING, 0, "String"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/Totem.php b/src/pocketmine/item/Totem.php index f64ced723..e322de7f1 100644 --- a/src/pocketmine/item/Totem.php +++ b/src/pocketmine/item/Totem.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\item; class Totem extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::TOTEM, $meta, "Totem of Undying"); + public function __construct(){ + parent::__construct(self::TOTEM, 0, "Totem of Undying"); } public function getMaxStackSize() : int{ diff --git a/src/pocketmine/item/WheatSeeds.php b/src/pocketmine/item/WheatSeeds.php index 5bf2dccdd..538d56368 100644 --- a/src/pocketmine/item/WheatSeeds.php +++ b/src/pocketmine/item/WheatSeeds.php @@ -27,8 +27,8 @@ use pocketmine\block\Block; use pocketmine\block\BlockFactory; class WheatSeeds extends Item{ - public function __construct(int $meta = 0){ - parent::__construct(self::WHEAT_SEEDS, $meta, "Wheat Seeds"); + public function __construct(){ + parent::__construct(self::WHEAT_SEEDS, 0, "Wheat Seeds"); } public function getBlock() : Block{ diff --git a/src/pocketmine/item/WritableBook.php b/src/pocketmine/item/WritableBook.php index cc73eec18..2bd083e83 100644 --- a/src/pocketmine/item/WritableBook.php +++ b/src/pocketmine/item/WritableBook.php @@ -34,8 +34,8 @@ class WritableBook extends Item{ public const TAG_PAGE_TEXT = "text"; //TAG_String public const TAG_PAGE_PHOTONAME = "photoname"; //TAG_String - TODO - public function __construct(int $meta = 0){ - parent::__construct(self::WRITABLE_BOOK, $meta, "Book & Quill"); + public function __construct(){ + parent::__construct(self::WRITABLE_BOOK, 0, "Book & Quill"); } /** diff --git a/src/pocketmine/item/WrittenBook.php b/src/pocketmine/item/WrittenBook.php index 5666e6c6b..1be3b5025 100644 --- a/src/pocketmine/item/WrittenBook.php +++ b/src/pocketmine/item/WrittenBook.php @@ -34,8 +34,8 @@ class WrittenBook extends WritableBook{ public const TAG_AUTHOR = "author"; //TAG_String public const TAG_TITLE = "title"; //TAG_String - public function __construct(int $meta = 0){ - Item::__construct(self::WRITTEN_BOOK, $meta, "Written Book"); + public function __construct(){ + Item::__construct(self::WRITTEN_BOOK, 0, "Written Book"); } public function getMaxStackSize() : int{