RuntimeDataDescriber
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) : voidbool()
php
public function bool(bool &$value) : voidboundedInt()
php
public function boundedInt(int $bits, int $min, int $max, int &$value) : voidDeprecated
Use RuntimeDataDescriber::boundedIntAuto() instead.
boundedIntAuto()
php
public function boundedIntAuto(int $min, int $max, int &$value) : voidSame 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) : voidDeprecated
Use enumSet() instead.
carpetVineSides() 5.46.0
php
public function carpetVineSides(array &$sides) : voidenum()
php
public function enum(\UnitEnum &$case) : voidenumSet()
php
public function enumSet(array &$set, array $allCases) : voidfacing()
php
public function facing(int &$facing) : voidfacingExcept()
php
public function facingExcept(int &$facing, int $except) : voidfacingFlags()
php
public function facingFlags(array &$faces) : voidhorizontalAxis()
php
public function horizontalAxis(int &$axis) : voidhorizontalFacing()
php
public function horizontalFacing(int &$facing) : voidhorizontalFacingFlags()
php
public function horizontalFacingFlags(array &$faces) : voidint()
php
public function int(int $bits, int &$value) : voidrailShape()
php
public function railShape(int &$railShape) : voidstraightOnlyRailShape()
php
public function straightOnlyRailShape(int &$railShape) : voidwallConnections()
php
public function wallConnections(array &$connections) : void