Added Ingot Item IDs

This commit is contained in:
Michael Yoo 2013-02-09 21:35:50 +10:30
parent 1cc15ddd42
commit 731827cf7d
4 changed files with 70 additions and 2 deletions

View File

@ -167,8 +167,8 @@ define("BOW", 261);
define("ARROW", 262);
define("COAL", 263);//Implemented
define("DIAMOND", 264);//Implemented
define("IRON_INGOT", 265);
define("GOLD_INGOT", 266);
define("IRON_INGOT", 265);//Implemented
define("GOLD_INGOT", 266);//Implemented
define("IRON_SWORD", 267);
define("WOODEN_SWORD", 268);
define("WOODEN_SHOVEL", 269);

View File

@ -44,6 +44,8 @@ class Item{
BOWL => "BowlItem",
FEATHER => "FeatherItem",
BRICK => "BrickItem",
IRON_INGOT => "IronIngotItem",
GOLD_INGOT => "GoldIngotItem",
);
protected $block;
protected $id;

View 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");
}
}

View 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");
}
}