Added Block Properties

This commit is contained in:
Shoghi Cervantes Pueyo
2013-02-02 12:50:53 +01:00
parent 4e740e1862
commit 4c06b384c7
38 changed files with 1414 additions and 24 deletions

View File

@@ -0,0 +1,50 @@
<?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 Item{
protected $id;
protected $meta;
protected $maxStackSize = 64;
protected $durability = 0;
protected $name = "Unknown";
public function __construct($id, $meta = 0){
$this->id = (int) $id;
$this->meta = (int) $meta;
}
public function getMaxStackSize(){
return $this->maxStackSize;
}
public function getDestroySpeed(Item $item, Player $player){
return 1;
}
}