From 463e82a1e71b6c8d99f841444aa4b30fc654c7ce Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 4 Apr 2013 12:04:03 +0200 Subject: [PATCH] Changed final public methods --- src/material/Block.php | 2 +- src/material/Item.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/material/Block.php b/src/material/Block.php index bc54461e..66a6f0cd 100644 --- a/src/material/Block.php +++ b/src/material/Block.php @@ -159,7 +159,7 @@ abstract class Block extends Vector3{ $this->breakTime = 0.25; } - public function getName(){ + final public function getName(){ return $this->name; } diff --git a/src/material/Item.php b/src/material/Item.php index 42f0410d..170684c8 100644 --- a/src/material/Item.php +++ b/src/material/Item.php @@ -73,15 +73,15 @@ class Item{ } } - public function getName(){ + final public function getName(){ return $this->name; } - public function isPlaceable(){ + final public function isPlaceable(){ return (($this->block instanceof Block) and $this->block->isPlaceable === true); } - public function getBlock(){ + final public function getBlock(){ if($this->block instanceof Block){ return $this->block; }else{ @@ -89,19 +89,19 @@ class Item{ } } - public function getID(){ + final public function getID(){ return $this->id; } - public function getMetadata(){ + final public function getMetadata(){ return $this->meta; } - public function getMaxStackSize(){ + final public function getMaxStackSize(){ return $this->maxStackSize; } - public function isPickaxe(){ //Returns false or level of the pickaxe + final public function isPickaxe(){ //Returns false or level of the pickaxe switch($this->id){ case IRON_PICKAXE: return 3;