Skip to content

BlockStateReader ​

final class · pocketmine\data\bedrock\block\convert\BlockStateReader · source

Methods ​

__construct() ​

php
public function __construct(\pocketmine\data\bedrock\block\BlockStateData $data)

badValueException() ​

php
public function badValueException(string $name, string $stringifiedValue, ?string $reason = null) : \pocketmine\data\bedrock\block\BlockStateDeserializeException

checkUnreadProperties() ​

php
public function checkUnreadProperties() : void

ignored() ​

php
public function ignored(string $name) : void

Explicitly mark a property as unused, so it doesn't get flagged as an error when debug mode is enabled

mapIntFromInt() ​

php
public function mapIntFromInt(string $name, \pocketmine\data\bedrock\block\convert\property\IntFromRawStateMap $map) : int

Deprecated

Deprecated.

mapIntFromString() ​

php
public function mapIntFromString(string $name, \pocketmine\data\bedrock\block\convert\property\IntFromRawStateMap $map) : int

Deprecated

Deprecated.

missingOrWrongTypeException() ​

php
public function missingOrWrongTypeException(string $name, ?\pocketmine\nbt\tag\Tag $tag) : \pocketmine\data\bedrock\block\BlockStateDeserializeException

read5MinusHorizontalFacing() ​

php
public function read5MinusHorizontalFacing() : int

Deprecated

Deprecated.

readBellAttachmentType() ​

php
public function readBellAttachmentType() : \pocketmine\block\utils\BellAttachmentType

Deprecated

Deprecated.

readBlockFace() ​

php
public function readBlockFace() : int

Deprecated

Deprecated.

readBool() ​

php
public function readBool(string $name) : bool

readBoundedInt() ​

php
public function readBoundedInt(string $name, int $min, int $max) : int

readCardinalHorizontalFacing() ​

php
public function readCardinalHorizontalFacing() : int

Deprecated

Deprecated.

readCoralFacing() ​

php
public function readCoralFacing() : int

Deprecated

Deprecated.

readEndRodFacingDirection() ​

php
public function readEndRodFacingDirection() : int

Deprecated

Deprecated.

readFacingDirection() ​

php
public function readFacingDirection() : int

Deprecated

Deprecated.

readFacingFlags() ​

php
public function readFacingFlags() : array

Deprecated

Deprecated.

readFacingWithoutDown() ​

php
public function readFacingWithoutDown() : int

Deprecated

Deprecated.

readFacingWithoutUp() ​

php
public function readFacingWithoutUp() : int

Deprecated

Deprecated.

readHorizontalFacing() ​

php
public function readHorizontalFacing() : int

Deprecated

Deprecated.

readInt() ​

php
public function readInt(string $name) : int

readLegacyHorizontalFacing() ​

php
public function readLegacyHorizontalFacing() : int

Deprecated

Deprecated.

readOptionalBool() 5.46.0 ​

php
public function readOptionalBool(string $name, bool $default) : bool

Like readBool(), but returns the given default when the property is absent. Used for properties that were added in newer versions (e.g. 1.26.50 connection bits) so that data saved by older versions still loads.

readOptionalString() 5.46.0 ​

php
public function readOptionalString(string $name, string $default) : string

Like readString(), but returns the given default when the property is absent.

readPillarAxis() ​

php
public function readPillarAxis() : int

Deprecated

Deprecated.

readSlabPosition() ​

php
public function readSlabPosition() : \pocketmine\block\utils\SlabType

Deprecated

Deprecated.

readString() ​

php
public function readString(string $name) : string

readTorchFacing() ​

php
public function readTorchFacing() : int

Deprecated

Deprecated.

readUnitEnum() ​

php
public function readUnitEnum(string $name, \pocketmine\data\bedrock\block\convert\property\EnumFromRawStateMap $map) : \UnitEnum

Deprecated

Deprecated.

readWallConnectionType() ​

php
public function readWallConnectionType(string $name) : ?\pocketmine\block\utils\WallConnectionType

Deprecated

Deprecated.

readWeirdoHorizontalFacing() ​

php
public function readWeirdoHorizontalFacing() : int

Deprecated

Deprecated.

todo() ​

php
public function todo(string $name) : void

Used to mark unused properties that haven't been implemented yet

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