PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
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)
 
 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 ()
 
 horizontalAxis (int &$axis)
 
 horizontalFacing (int &$facing)
 
 horizontalFacingFlags (array &$faces)
 
 int (int $bits, int &$value)
 
 railShape (int &$railShape)
 
 readInt (int $bits)
 
 straightOnlyRailShape (int &$railShape)
 
 wallConnections (array &$connections)
 

Protected Member Functions

 readBool ()
 

Detailed Description

Definition at line 37 of file RuntimeDataReader.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 40 of file RuntimeDataReader.php.

Member Function Documentation

◆ axis()

pocketmine\data\runtime\RuntimeDataReader::axis ( int & $axis)

◆ bool()

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

◆ boundedInt()

pocketmine\data\runtime\RuntimeDataReader::boundedInt ( int $bits,
int $min,
int $max,
int & $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 81 of file RuntimeDataReader.php.

◆ brewingStandSlots()

pocketmine\data\runtime\RuntimeDataReader::brewingStandSlots ( array & $slots)
Parameters
BrewingStandSlot[]$slots@phpstan-param array<int, BrewingStandSlot> $slots
Deprecated
Use enumSet() instead.

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 199 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 221 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 232 of file RuntimeDataReader.php.

◆ facing()

pocketmine\data\runtime\RuntimeDataReader::facing ( int & $facing)

◆ facingExcept()

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

◆ facingFlags()

pocketmine\data\runtime\RuntimeDataReader::facingFlags ( array & $faces)
Parameters
int[]$faces

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 106 of file RuntimeDataReader.php.

◆ getOffset()

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

Definition at line 242 of file RuntimeDataReader.php.

◆ horizontalAxis()

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

◆ horizontalFacing()

pocketmine\data\runtime\RuntimeDataReader::horizontalFacing ( int & $facing)

◆ horizontalFacingFlags()

pocketmine\data\runtime\RuntimeDataReader::horizontalFacingFlags ( array & $faces)
Parameters
int[]$faces

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 120 of file RuntimeDataReader.php.

◆ int()

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

◆ railShape()

pocketmine\data\runtime\RuntimeDataReader::railShape ( int & $railShape)

◆ readBool()

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

Definition at line 85 of file RuntimeDataReader.php.

◆ readInt()

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

Definition at line 45 of file RuntimeDataReader.php.

◆ straightOnlyRailShape()

pocketmine\data\runtime\RuntimeDataReader::straightOnlyRailShape ( int & $railShape)

◆ wallConnections()

pocketmine\data\runtime\RuntimeDataReader::wallConnections ( array & $connections)
Parameters
WallConnectionType[]$connections@phpstan-param array<Facing::NORTH|Facing::EAST|Facing::SOUTH|Facing::WEST, WallConnectionType> $connections

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 174 of file RuntimeDataReader.php.


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