mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Changed final public methods
This commit is contained in:
@ -159,7 +159,7 @@ abstract class Block extends Vector3{
|
|||||||
$this->breakTime = 0.25;
|
$this->breakTime = 0.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
final public function getName(){
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,15 +73,15 @@ class Item{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
final public function getName(){
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isPlaceable(){
|
final public function isPlaceable(){
|
||||||
return (($this->block instanceof Block) and $this->block->isPlaceable === true);
|
return (($this->block instanceof Block) and $this->block->isPlaceable === true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getBlock(){
|
final public function getBlock(){
|
||||||
if($this->block instanceof Block){
|
if($this->block instanceof Block){
|
||||||
return $this->block;
|
return $this->block;
|
||||||
}else{
|
}else{
|
||||||
@ -89,19 +89,19 @@ class Item{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getID(){
|
final public function getID(){
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMetadata(){
|
final public function getMetadata(){
|
||||||
return $this->meta;
|
return $this->meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMaxStackSize(){
|
final public function getMaxStackSize(){
|
||||||
return $this->maxStackSize;
|
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){
|
switch($this->id){
|
||||||
case IRON_PICKAXE:
|
case IRON_PICKAXE:
|
||||||
return 3;
|
return 3;
|
||||||
|
Reference in New Issue
Block a user