Corrected Feather and Added Brick

This commit is contained in:
Michael Yoo 2013-02-07 16:24:06 +10:30
parent 318590e664
commit 72388fa3cb
3 changed files with 67 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class Item{
STICK => "StickItem",
BOWL => "BowlItem",
FEATHER => "FeatherItem",
BRICK => "BrickItem",
);
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 BrickItem extends Item{
public function __construct($meta = 0, $count = 1){
parent::__construct(BRICK, 0, $count, "Brick");
}
}

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 FeatherItem extends Item{
public function __construct($meta = 0, $count = 1){
parent::__construct(FEATHER, 0, $count, "Feather");
}
}