PocketMine-MP 5.14.2 git-50e2c469a547a16a23b2dc691e70a51d34e29395
pocketmine\data\runtime\RuntimeDataSizeCalculator Class Reference
+ Inheritance diagram for pocketmine\data\runtime\RuntimeDataSizeCalculator:
+ Collaboration diagram for pocketmine\data\runtime\RuntimeDataSizeCalculator:

Public Member Functions

 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)
 
 getBitsUsed ()
 
 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)
 
 slabType (\pocketmine\block\utils\SlabType &$value)
 
 straightOnlyRailShape (int &$railShape)
 
 suspiciousStewType (\pocketmine\item\SuspiciousStewType &$value)
 
 wallConnections (array &$connections)
 

Protected Member Functions

 addBits (int $bits)
 

Detailed Description

Definition at line 31 of file RuntimeDataSizeCalculator.php.

Member Function Documentation

◆ addBits()

pocketmine\data\runtime\RuntimeDataSizeCalculator::addBits ( int  $bits)
protected

Definition at line 36 of file RuntimeDataSizeCalculator.php.

◆ axis()

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

◆ bool()

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

◆ boundedInt()

pocketmine\data\runtime\RuntimeDataSizeCalculator::boundedInt ( int  $bits,
int  $min,
int  $max,
int &  $value 
)

◆ boundedIntAuto()

pocketmine\data\runtime\RuntimeDataSizeCalculator::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 60 of file RuntimeDataSizeCalculator.php.

◆ brewingStandSlots()

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

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 100 of file RuntimeDataSizeCalculator.php.

◆ enum()

pocketmine\data\runtime\RuntimeDataSizeCalculator::enum ( \UnitEnum &  $case)

◆ enumSet()

pocketmine\data\runtime\RuntimeDataSizeCalculator::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 117 of file RuntimeDataSizeCalculator.php.

◆ facing()

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

◆ facingExcept()

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

◆ facingFlags()

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

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 72 of file RuntimeDataSizeCalculator.php.

◆ getBitsUsed()

pocketmine\data\runtime\RuntimeDataSizeCalculator::getBitsUsed ( )

Definition at line 40 of file RuntimeDataSizeCalculator.php.

◆ horizontalAxis()

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

◆ horizontalFacing()

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

◆ horizontalFacingFlags()

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

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 76 of file RuntimeDataSizeCalculator.php.

◆ int()

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

◆ railShape()

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

◆ straightOnlyRailShape()

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

◆ wallConnections()

pocketmine\data\runtime\RuntimeDataSizeCalculator::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 96 of file RuntimeDataSizeCalculator.php.


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