PocketMine-MP 5.33.2 git-919492bdcad8510eb6606439eb77e1c604f1d1ea
|
Public Member Functions | |
__construct (private int $maxBits, private int $value) | |
bool (bool &$value) | |
boundedIntAuto (int $min, int $max, int &$value) | |
enum (\UnitEnum &$case) | |
enumSet (array &$set, array $allCases) | |
facingExcept (Facing &$facing, Facing $except) | |
getOffset () | |
horizontalAxis (Axis &$axis) | |
int (int $bits, int &$value) | |
readInt (int $bits) | |
wallConnections (array &$connections) | |
Protected Member Functions | |
readBool () | |
Definition at line 35 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::__construct | ( | private int | $maxBits, |
private int | $value ) |
Definition at line 38 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::bool | ( | bool & | $value | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 75 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::boundedIntAuto | ( | int | $min, |
int | $max, | ||
int & | $value ) |
Same as boundedInt() but automatically calculates the required number of bits from the range. The range bounds must be constant.
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 67 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::enum | ( | \UnitEnum & | $case | ) |
@phpstan-template T of \UnitEnum @phpstan-param T &$case @phpstan-param-out T $case
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 120 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::enumSet | ( | array & | $set, |
array | $allCases ) |
\UnitEnum[] | &$set | |
\UnitEnum[] | $allCases |
@phpstan-template T of \UnitEnum @phpstan-param array<int, T> &$set @phpstan-param array<int, T> $allCases
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 131 of file RuntimeDataReader.php.
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 79 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::getOffset | ( | ) |
Definition at line 141 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::horizontalAxis | ( | Axis & | $axis | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 89 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::int | ( | int | $bits, |
int & | $value ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 54 of file RuntimeDataReader.php.
|
protected |
Definition at line 71 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::readInt | ( | int | $bits | ) |
Definition at line 43 of file RuntimeDataReader.php.
pocketmine\data\runtime\RuntimeDataReader::wallConnections | ( | array & | $connections | ) |
WallConnectionType[] | $connections | @phpstan-param array<value-of<Facing::NORTH|Facing::EAST|Facing::SOUTH|Facing::WEST>, WallConnectionType> $connections |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 101 of file RuntimeDataReader.php.