mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Added Ingot Item IDs
This commit is contained in:
parent
1cc15ddd42
commit
731827cf7d
@ -167,8 +167,8 @@ define("BOW", 261);
|
|||||||
define("ARROW", 262);
|
define("ARROW", 262);
|
||||||
define("COAL", 263);//Implemented
|
define("COAL", 263);//Implemented
|
||||||
define("DIAMOND", 264);//Implemented
|
define("DIAMOND", 264);//Implemented
|
||||||
define("IRON_INGOT", 265);
|
define("IRON_INGOT", 265);//Implemented
|
||||||
define("GOLD_INGOT", 266);
|
define("GOLD_INGOT", 266);//Implemented
|
||||||
define("IRON_SWORD", 267);
|
define("IRON_SWORD", 267);
|
||||||
define("WOODEN_SWORD", 268);
|
define("WOODEN_SWORD", 268);
|
||||||
define("WOODEN_SHOVEL", 269);
|
define("WOODEN_SHOVEL", 269);
|
||||||
|
@ -44,6 +44,8 @@ class Item{
|
|||||||
BOWL => "BowlItem",
|
BOWL => "BowlItem",
|
||||||
FEATHER => "FeatherItem",
|
FEATHER => "FeatherItem",
|
||||||
BRICK => "BrickItem",
|
BRICK => "BrickItem",
|
||||||
|
IRON_INGOT => "IronIngotItem",
|
||||||
|
GOLD_INGOT => "GoldIngotItem",
|
||||||
);
|
);
|
||||||
protected $block;
|
protected $block;
|
||||||
protected $id;
|
protected $id;
|
||||||
|
33
src/classes/material/item/generic/GoldIngot.php
Normal file
33
src/classes/material/item/generic/GoldIngot.php
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
-
|
||||||
|
/ \
|
||||||
|
/ \
|
||||||
|
/ PocketMine \
|
||||||
|
/ MP \
|
||||||
|
|\ @shoghicp /|
|
||||||
|
|. \ / .|
|
||||||
|
| .. \ / .. |
|
||||||
|
| .. | .. |
|
||||||
|
| .. | .. |
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
class GoldIngotItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
parent::__construct(GOLD_INGOT, 0, $count, "GoldIngot");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
33
src/classes/material/item/generic/IronIngot.php
Normal file
33
src/classes/material/item/generic/IronIngot.php
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
-
|
||||||
|
/ \
|
||||||
|
/ \
|
||||||
|
/ PocketMine \
|
||||||
|
/ MP \
|
||||||
|
|\ @shoghicp /|
|
||||||
|
|. \ / .|
|
||||||
|
| .. \ / .. |
|
||||||
|
| .. | .. |
|
||||||
|
| .. | .. |
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
class IronIngotItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
parent::__construct(IRON_INGOT, 0, $count, "IronIngot");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user