mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Block: move a function
This commit is contained in:
parent
53bb05a6a7
commit
765c5963a8
@ -136,6 +136,16 @@ class Block extends Position implements BlockIds, Metadatable{
|
|||||||
return $this->idInfo->getVariant() | $stateMeta;
|
return $this->idInfo->getVariant() | $stateMeta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a bitmask used to extract state bits from block metadata.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getStateBitmask() : int{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
protected function writeStateToMeta() : int{
|
protected function writeStateToMeta() : int{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -176,15 +186,6 @@ class Block extends Position implements BlockIds, Metadatable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a bitmask used to extract state bits from block metadata.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*/
|
|
||||||
public function getStateBitmask() : int{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the given block has an equivalent type to this one. This compares base legacy ID and variant.
|
* Returns whether the given block has an equivalent type to this one. This compares base legacy ID and variant.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user