mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Item: remove redundant meta constructor params
these ctor params should only be used for variants in the ItemFactory registration, but all of these items have no non-zero variants anyway.
This commit is contained in:
parent
88b3df76eb
commit
712cafa0cc
@ -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{
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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{
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user