mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Structure.php now is not static
This commit is contained in:
parent
1c606f3e5e
commit
546ca07d95
7 changed files with 155 additions and 176 deletions
|
|
@ -171,7 +171,6 @@ abstract class Block extends Position{
|
|||
public $z = 0;
|
||||
public $slipperiness;
|
||||
|
||||
|
||||
public function __construct($id, $meta = 0, $name = "Unknown"){
|
||||
$this->id = (int) $id;
|
||||
$this->meta = (int) $meta;
|
||||
|
|
@ -193,9 +192,11 @@ abstract class Block extends Position{
|
|||
final public function getID(){
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setMetadata($i){
|
||||
$this->meta = $i;
|
||||
}
|
||||
|
||||
final public function getMetadata(){
|
||||
return $this->meta & 0x0F;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue