PocketMine-MP 5.37.1 git-da6732df2656426fbd1b7898ed06c8286969d2f1
Loading...
Searching...
No Matches
pocketmine\data\runtime\RuntimeDataDescriber Interface Reference
+ Inheritance diagram for pocketmine\data\runtime\RuntimeDataDescriber:
+ Collaboration diagram for pocketmine\data\runtime\RuntimeDataDescriber:

Public Member Functions

 bool (bool &$value)
 
 boundedIntAuto (int $min, int $max, int &$value)
 
 enum (\UnitEnum &$case)
 
 enumSet (array &$set, array $allCases)
 
 facingExcept (Facing &$facing, Facing $except)
 
 horizontalAxis (Axis &$axis)
 
 int (int $bits, int &$value)
 
 wallConnections (array &$connections)
 

Detailed Description

Interface implemented by RuntimeDataReader, RuntimeDataWriter and RuntimeDataSizeCalculator. Used to describe the structure of runtime data to an implementation.

This interface should be considered sealed. You may use it as a type for parameters and return values, but it should not be implemented outside of this package. New methods may be added without warning.

Definition at line 38 of file RuntimeDataDescriber.php.

Member Function Documentation

◆ boundedIntAuto()

pocketmine\data\runtime\RuntimeDataDescriber::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.

Implemented in pocketmine\data\runtime\RuntimeDataReader, pocketmine\data\runtime\RuntimeDataSizeCalculator, and pocketmine\data\runtime\RuntimeDataWriter.

◆ enum()

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

@phpstan-template T of \UnitEnum @phpstan-param T &$case @phpstan-param-out T $case

Implemented in pocketmine\data\runtime\RuntimeDataReader, pocketmine\data\runtime\RuntimeDataSizeCalculator, and pocketmine\data\runtime\RuntimeDataWriter.

◆ enumSet()

pocketmine\data\runtime\RuntimeDataDescriber::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

Implemented in pocketmine\data\runtime\RuntimeDataReader, pocketmine\data\runtime\RuntimeDataSizeCalculator, and pocketmine\data\runtime\RuntimeDataWriter.

◆ wallConnections()

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

Implemented in pocketmine\data\runtime\RuntimeDataReader, pocketmine\data\runtime\RuntimeDataSizeCalculator, and pocketmine\data\runtime\RuntimeDataWriter.


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