mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Updated the BlockAPI::drop method
This commit is contained in:
@@ -25,7 +25,7 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
*/
|
||||
|
||||
abstract class Block{
|
||||
abstract class Block extends Vector3{
|
||||
public static $class = array(
|
||||
AIR => "AirBlock",
|
||||
STONE => "StoneBlock",
|
||||
@@ -183,7 +183,7 @@ abstract class Block{
|
||||
}
|
||||
|
||||
final public function __toString(){
|
||||
return $this->name ." (".$this->id.":".$this->meta.")";
|
||||
return "Block ". $this->name ." (".$this->id.":".$this->meta.")";
|
||||
}
|
||||
|
||||
abstract function isBreakable(Item $item, Player $player);
|
||||
|
@@ -128,7 +128,7 @@ class Item{
|
||||
}
|
||||
|
||||
final public function __toString(){
|
||||
return $this->name ." (".$this->id.":".$this->meta.")";
|
||||
return "Item ". $this->name ." (".$this->id.":".$this->meta.")";
|
||||
}
|
||||
|
||||
public function getDestroySpeed(Block $block, Player $player){
|
||||
|
Reference in New Issue
Block a user