PocketMine-MP 5.33.2 git-919492bdcad8510eb6606439eb77e1c604f1d1ea
Loading...
Searching...
No Matches
pocketmine\data\runtime\RuntimeDataReader Class Reference
+ Inheritance diagram for pocketmine\data\runtime\RuntimeDataReader:
+ Collaboration diagram for pocketmine\data\runtime\RuntimeDataReader:

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 ()
 

Detailed Description

Definition at line 35 of file RuntimeDataReader.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\runtime\RuntimeDataReader::__construct ( private int $maxBits,
private int $value )

Definition at line 38 of file RuntimeDataReader.php.

Member Function Documentation

◆ bool()

pocketmine\data\runtime\RuntimeDataReader::bool ( bool & $value)

◆ boundedIntAuto()

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.

◆ enum()

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.

◆ enumSet()

pocketmine\data\runtime\RuntimeDataReader::enumSet ( array & $set,
array $allCases )
Parameters
\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.

◆ facingExcept()

pocketmine\data\runtime\RuntimeDataReader::facingExcept ( Facing & $facing,
Facing $except )

◆ getOffset()

pocketmine\data\runtime\RuntimeDataReader::getOffset ( )

Definition at line 141 of file RuntimeDataReader.php.

◆ horizontalAxis()

pocketmine\data\runtime\RuntimeDataReader::horizontalAxis ( Axis & $axis)

◆ int()

pocketmine\data\runtime\RuntimeDataReader::int ( int $bits,
int & $value )

◆ readBool()

pocketmine\data\runtime\RuntimeDataReader::readBool ( )
protected

Definition at line 71 of file RuntimeDataReader.php.

◆ readInt()

pocketmine\data\runtime\RuntimeDataReader::readInt ( int $bits)

Definition at line 43 of file RuntimeDataReader.php.

◆ wallConnections()

pocketmine\data\runtime\RuntimeDataReader::wallConnections ( array & $connections)
Parameters
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.


The documentation for this class was generated from the following file: