Skip to content

RuntimeDataDescriber ​

interface · pocketmine\data\runtime\RuntimeDataDescriber · source

Extends RuntimeEnumDescriber

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.

Methods ​

axis() ​

php
public function axis(int &$axis) : void

bool() ​

php
public function bool(bool &$value) : void

boundedInt() ​

php
public function boundedInt(int $bits, int $min, int $max, int &$value) : void

Deprecated

Use RuntimeDataDescriber::boundedIntAuto() instead.

boundedIntAuto() ​

php
public function boundedIntAuto(int $min, int $max, int &$value) : void

Same as boundedInt() but automatically calculates the required number of bits from the range. The range bounds must be constant.

brewingStandSlots() ​

php
public function brewingStandSlots(array &$slots) : void

Deprecated

Use enumSet() instead.

carpetVineSides() 5.46.0 ​

php
public function carpetVineSides(array &$sides) : void

enum() ​

php
public function enum(\UnitEnum &$case) : void

enumSet() ​

php
public function enumSet(array &$set, array $allCases) : void

facing() ​

php
public function facing(int &$facing) : void

facingExcept() ​

php
public function facingExcept(int &$facing, int $except) : void

facingFlags() ​

php
public function facingFlags(array &$faces) : void

horizontalAxis() ​

php
public function horizontalAxis(int &$axis) : void

horizontalFacing() ​

php
public function horizontalFacing(int &$facing) : void

horizontalFacingFlags() ​

php
public function horizontalFacingFlags(array &$faces) : void

int() ​

php
public function int(int $bits, int &$value) : void

railShape() ​

php
public function railShape(int &$railShape) : void

straightOnlyRailShape() ​

php
public function straightOnlyRailShape(int &$railShape) : void

wallConnections() ​

php
public function wallConnections(array &$connections) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.