PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\data\runtime\RuntimeDataWriter Class Reference
+ Inheritance diagram for pocketmine\data\runtime\RuntimeDataWriter:
+ Collaboration diagram for pocketmine\data\runtime\RuntimeDataWriter:

Public Member Functions

 __construct (private int $maxBits)
 
 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 ()
 
 getValue ()
 
 horizontalAxis (int &$axis)
 
 horizontalFacing (int &$facing)
 
 horizontalFacingFlags (array &$faces)
 
 int (int $bits, int &$value)
 
 railShape (int &$railShape)
 
 straightOnlyRailShape (int &$railShape)
 
 wallConnections (array &$connections)
 
 writeInt (int $bits, int $value)
 

Protected Member Functions

 writeBool (bool $value)
 

Detailed Description

Definition at line 34 of file RuntimeDataWriter.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\runtime\RuntimeDataWriter::__construct ( private int $maxBits)

Definition at line 38 of file RuntimeDataWriter.php.

Member Function Documentation

◆ axis()

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

◆ bool()

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

◆ boundedInt()

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

◆ boundedIntAuto()

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

◆ brewingStandSlots()

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

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 177 of file RuntimeDataWriter.php.

◆ enum()

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

◆ enumSet()

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

◆ facing()

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

◆ facingExcept()

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

◆ facingFlags()

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

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 103 of file RuntimeDataWriter.php.

◆ getOffset()

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

Definition at line 202 of file RuntimeDataWriter.php.

◆ getValue()

pocketmine\data\runtime\RuntimeDataWriter::getValue ( )

Definition at line 200 of file RuntimeDataWriter.php.

◆ horizontalAxis()

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

◆ horizontalFacing()

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

◆ horizontalFacingFlags()

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

Implements pocketmine\data\runtime\RuntimeDataDescriber.

Definition at line 113 of file RuntimeDataWriter.php.

◆ int()

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

◆ railShape()

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

◆ straightOnlyRailShape()

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

◆ wallConnections()

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

◆ writeBool()

pocketmine\data\runtime\RuntimeDataWriter::writeBool ( bool $value)
protected

Definition at line 82 of file RuntimeDataWriter.php.

◆ writeInt()

pocketmine\data\runtime\RuntimeDataWriter::writeInt ( int $bits,
int $value )

Definition at line 42 of file RuntimeDataWriter.php.


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