PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
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)
 
 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 ()
 
 getValue ()
 
 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)
 
 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 40 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 80 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 179 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 191 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 196 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 105 of file RuntimeDataWriter.php.

◆ getOffset()

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

Definition at line 204 of file RuntimeDataWriter.php.

◆ getValue()

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

Definition at line 202 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 115 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 159 of file RuntimeDataWriter.php.

◆ writeBool()

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

Definition at line 84 of file RuntimeDataWriter.php.

◆ writeInt()

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

Definition at line 44 of file RuntimeDataWriter.php.


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