PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (private int $maxBits) | |
axis (int &$axis) | |
bool (bool &$value) | |
boundedInt (int $bits, int $min, int $max, int &$value) | |
boundedIntAuto (int $min, int $max, int &$value) | |
brewingStandSlots (array &$slots) | |
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 34 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::__construct | ( | private int | $maxBits | ) |
Definition at line 38 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::axis | ( | int & | $axis | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 136 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::bool | ( | bool & | $value | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 86 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::boundedInt | ( | int | $bits, |
int | $min, | ||
int | $max, | ||
int & | $value ) |
self::boundedIntAuto()
instead. Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 61 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 78 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::brewingStandSlots | ( | array & | $slots | ) |
BrewingStandSlot[] | $slots | @phpstan-param array<int, BrewingStandSlot> $slots |
enumSet()
instead. Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 177 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 189 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 194 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::facing | ( | int & | $facing | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 120 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::facingExcept | ( | int & | $facing, |
int | $except ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 132 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::facingFlags | ( | array & | $faces | ) |
int[] | $faces |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 103 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::getOffset | ( | ) |
Definition at line 202 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::getValue | ( | ) |
Definition at line 200 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::horizontalAxis | ( | int & | $axis | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 145 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::horizontalFacing | ( | int & | $facing | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 90 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::horizontalFacingFlags | ( | array & | $faces | ) |
int[] | $faces |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 113 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::int | ( | int | $bits, |
int & | $value ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 54 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::railShape | ( | int & | $railShape | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 181 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::straightOnlyRailShape | ( | int & | $railShape | ) |
Implements pocketmine\data\runtime\RuntimeDataDescriber.
Definition at line 185 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 157 of file RuntimeDataWriter.php.
|
protected |
Definition at line 82 of file RuntimeDataWriter.php.
pocketmine\data\runtime\RuntimeDataWriter::writeInt | ( | int | $bits, |
int | $value ) |
Definition at line 42 of file RuntimeDataWriter.php.