PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
|
Public Member Functions | |
__construct (private int $maxBits) | |
axis (int &$axis) | |
bool (bool &$value) | |
boundedIntAuto (int $min, int $max, int &$value) | |
enum (\UnitEnum &$case) | |
enumSet (array &$set, array $allCases) | |
facing (int &$facing) | |
facingExcept (int &$facing, int $except) | |
facingFlags (array &$faces) | |
getOffset () | |
getValue () | |
horizontalAxis (int &$axis) | |
horizontalFacing (int &$facing) | |
horizontalFacingFlags (array &$faces) | |
int (int $bits, int &$value) | |
railShape (int &$railShape) | |
straightOnlyRailShape (int &$railShape) | |
wallConnections (array &$connections) | |
writeInt (int $bits, int $value) | |
Protected Member Functions | |
writeBool (bool $value) | |
Definition at line 33 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::__construct | ( | private int | $maxBits | ) |
Definition at line 37 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::axis | ( | int & | $axis | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 123 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::bool | ( | bool & | $value | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 73 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::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 65 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::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 166 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::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 171 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::facing | ( | int & | $facing | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 107 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::facingExcept | ( | int & | $facing, |
int | $except ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 119 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::facingFlags | ( | array & | $faces | ) |
int[] | $faces |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 90 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::getOffset | ( | ) |
Definition at line 179 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::getValue | ( | ) |
Definition at line 177 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::horizontalAxis | ( | int & | $axis | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 132 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::horizontalFacing | ( | int & | $facing | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 77 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::horizontalFacingFlags | ( | array & | $faces | ) |
int[] | $faces |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 100 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::int | ( | int | $bits, |
int & | $value ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 53 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::railShape | ( | int & | $railShape | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 158 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::straightOnlyRailShape | ( | int & | $railShape | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 162 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::wallConnections | ( | array & | $connections | ) |
WallConnectionType[] | $connections | @phpstan-param array<Facing::NORTH|Facing::EAST|Facing::SOUTH|Facing::WEST, WallConnectionType> $connections |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 144 of file RuntimeDataWriter.php.
|
protected |
Definition at line 69 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::writeInt | ( | int | $bits, |
int | $value ) |
Definition at line 41 of file RuntimeDataWriter.php.