PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
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)
 
 bellAttachmentType (\pocketmine\block\utils\BellAttachmentType &$value)
 
 bool (bool &$value)
 
 boundedInt (int $bits, int $min, int $max, int &$value)
 
 boundedIntAuto (int $min, int $max, int &$value)
 
 brewingStandSlots (array &$slots)
 
 copperOxidation (\pocketmine\block\utils\CopperOxidation &$value)
 
 coralType (\pocketmine\block\utils\CoralType &$value)
 
 dirtType (\pocketmine\block\utils\DirtType &$value)
 
 dripleafState (\pocketmine\block\utils\DripleafState &$value)
 
 dyeColor (\pocketmine\block\utils\DyeColor &$value)
 
 enum (\UnitEnum &$case)
 
 enumSet (array &$set, array $allCases)
 
 facing (int &$facing)
 
 facingExcept (int &$facing, int $except)
 
 facingFlags (array &$faces)
 
 froglightType (\pocketmine\block\utils\FroglightType &$value)
 
 getOffset ()
 
 horizontalAxis (int &$axis)
 
 horizontalFacing (int &$facing)
 
 horizontalFacingFlags (array &$faces)
 
 int (int $bits, int &$value)
 
 leverFacing (\pocketmine\block\utils\LeverFacing &$value)
 
 medicineType (\pocketmine\item\MedicineType &$value)
 
 mobHeadType (\pocketmine\block\utils\MobHeadType &$value)
 
 mushroomBlockType (\pocketmine\block\utils\MushroomBlockType &$value)
 
 potionType (\pocketmine\item\PotionType &$value)
 
 railShape (int &$railShape)
 
 readInt (int $bits)
 
 slabType (\pocketmine\block\utils\SlabType &$value)
 
 straightOnlyRailShape (int &$railShape)
 
 suspiciousStewType (\pocketmine\item\SuspiciousStewType &$value)
 
 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 42 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 83 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 201 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 223 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 234 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 108 of file RuntimeDataReader.php.

◆ getOffset()

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

Definition at line 244 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 122 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 87 of file RuntimeDataReader.php.

◆ readInt()

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

Definition at line 47 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 176 of file RuntimeDataReader.php.


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