mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
Block: private internal function
This commit is contained in:
parent
63fcf9879a
commit
7f3de835e4
@ -95,7 +95,7 @@ class Block{
|
|||||||
* The type ID is included in the XOR mask. This is not necessary to improve distribution, but it reduces the number
|
* The type ID is included in the XOR mask. This is not necessary to improve distribution, but it reduces the number
|
||||||
* of operations required to compute the state ID (micro optimization).
|
* of operations required to compute the state ID (micro optimization).
|
||||||
*/
|
*/
|
||||||
public static function computeStateIdXorMask(int $typeId) : int{
|
private static function computeStateIdXorMask(int $typeId) : int{
|
||||||
return
|
return
|
||||||
$typeId << self::INTERNAL_STATE_DATA_BITS |
|
$typeId << self::INTERNAL_STATE_DATA_BITS |
|
||||||
(Binary::readLong(hash('xxh3', Binary::writeLLong($typeId), binary: true)) & self::INTERNAL_STATE_DATA_MASK);
|
(Binary::readLong(hash('xxh3', Binary::writeLLong($typeId), binary: true)) & self::INTERNAL_STATE_DATA_MASK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user