Fixed items

This commit is contained in:
ArkQuark 2022-03-06 20:48:42 +03:00
parent faca65010d
commit d3df65f8c9
9 changed files with 21 additions and 14 deletions

View file

@ -111,6 +111,7 @@ define("BRICK", 336);
define("CLAY", 337); define("CLAY", 337);
define("SUGARCANE", 338); define("SUGARCANE", 338);
define("SUGAR_CANE", 338); define("SUGAR_CANE", 338);
define("SUGAR_CANES", 338);
define("REED", 338); define("REED", 338);
define("PAPER", 339); define("PAPER", 339);
define("BOOK", 340); define("BOOK", 340);

View file

@ -20,7 +20,8 @@
*/ */
class CookedChickenItem extends Item{ class CookedChickenItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(COOKED_CHICKEN, 0, "Cooked Chicken"); parent::__construct(COOKED_CHICKEN, 0, $count, "Cooked Chicken");
} }
} }

View file

@ -20,7 +20,7 @@
*/ */
class CookedPorkchopItem extends Item{ class CookedPorkchopItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(COOKED_PORKCHOP, 0, "Cooked Porkchop"); parent::__construct(COOKED_PORKCHOP, 0, $count, "Cooked Porkchop");
} }
} }

View file

@ -24,4 +24,5 @@ class PotatoItem extends Item{
$this->block = BlockAPI::get(POTATO_BLOCK); $this->block = BlockAPI::get(POTATO_BLOCK);
parent::__construct(POTATO, 0, $count, "Potato"); parent::__construct(POTATO, 0, $count, "Potato");
} }
} }

View file

@ -20,7 +20,8 @@
*/ */
class PumpkinPieItem extends Item{ class PumpkinPieItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(PUMPKIN_PIE, 0, "Pumpkin Pie"); parent::__construct(PUMPKIN_PIE, 0, $count, "Pumpkin Pie");
} }
} }

View file

@ -20,7 +20,8 @@
*/ */
class RawChickenItem extends Item{ class RawChickenItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(RAW_CHICKEN, 0, "Raw Chicken"); parent::__construct(RAW_CHICKEN, 0, $count, "Raw Chicken");
} }
} }

View file

@ -20,7 +20,8 @@
*/ */
class RawPorkchopItem extends Item{ class RawPorkchopItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(RAW_PORKCHOP, 0, "Raw Porkchop"); parent::__construct(RAW_PORKCHOP, 0, $count, "Raw Porkchop");
} }
} }

View file

@ -20,7 +20,8 @@
*/ */
class BoneItem extends Item{ class BoneItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(BONE, 0, "Bone"); parent::__construct(BONE, 0, $count, "Bone");
} }
} }

View file

@ -20,8 +20,8 @@
*/ */
class GunpowderItem extends Item{ class GunpowderItem extends Item{
public function __construct($meta = 0){ public function __construct($meta = 0, $count = 1){
parent::__construct(GUNPOWDER, 0, "Gunpowder"); parent::__construct(GUNPOWDER, 0, $count, "Gunpowder");
} }
} }