BlockStateReader
Methods
__construct()
public function __construct(\pocketmine\data\bedrock\block\BlockStateData $data)badValueException()
public function badValueException(string $name, string $stringifiedValue, ?string $reason = null) : \pocketmine\data\bedrock\block\BlockStateDeserializeExceptioncheckUnreadProperties()
public function checkUnreadProperties() : voidignored()
public function ignored(string $name) : voidExplicitly mark a property as unused, so it doesn't get flagged as an error when debug mode is enabled
mapIntFromInt()
public function mapIntFromInt(string $name, \pocketmine\data\bedrock\block\convert\property\IntFromRawStateMap $map) : intDeprecated
Deprecated.
mapIntFromString()
public function mapIntFromString(string $name, \pocketmine\data\bedrock\block\convert\property\IntFromRawStateMap $map) : intDeprecated
Deprecated.
missingOrWrongTypeException()
public function missingOrWrongTypeException(string $name, ?\pocketmine\nbt\tag\Tag $tag) : \pocketmine\data\bedrock\block\BlockStateDeserializeExceptionread5MinusHorizontalFacing()
public function read5MinusHorizontalFacing() : intDeprecated
Deprecated.
readBellAttachmentType()
public function readBellAttachmentType() : \pocketmine\block\utils\BellAttachmentTypeDeprecated
Deprecated.
readBlockFace()
public function readBlockFace() : intDeprecated
Deprecated.
readBool()
public function readBool(string $name) : boolreadBoundedInt()
public function readBoundedInt(string $name, int $min, int $max) : intreadCardinalHorizontalFacing()
public function readCardinalHorizontalFacing() : intDeprecated
Deprecated.
readCoralFacing()
public function readCoralFacing() : intDeprecated
Deprecated.
readEndRodFacingDirection()
public function readEndRodFacingDirection() : intDeprecated
Deprecated.
readFacingDirection()
public function readFacingDirection() : intDeprecated
Deprecated.
readFacingFlags()
public function readFacingFlags() : arrayDeprecated
Deprecated.
readFacingWithoutDown()
public function readFacingWithoutDown() : intDeprecated
Deprecated.
readFacingWithoutUp()
public function readFacingWithoutUp() : intDeprecated
Deprecated.
readHorizontalFacing()
public function readHorizontalFacing() : intDeprecated
Deprecated.
readInt()
public function readInt(string $name) : intreadLegacyHorizontalFacing()
public function readLegacyHorizontalFacing() : intDeprecated
Deprecated.
readOptionalBool() 5.46.0
public function readOptionalBool(string $name, bool $default) : boolLike 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
public function readOptionalString(string $name, string $default) : stringLike readString(), but returns the given default when the property is absent.
readPillarAxis()
public function readPillarAxis() : intDeprecated
Deprecated.
readSlabPosition()
public function readSlabPosition() : \pocketmine\block\utils\SlabTypeDeprecated
Deprecated.
readString()
public function readString(string $name) : stringreadTorchFacing()
public function readTorchFacing() : intDeprecated
Deprecated.
readUnitEnum()
public function readUnitEnum(string $name, \pocketmine\data\bedrock\block\convert\property\EnumFromRawStateMap $map) : \UnitEnumDeprecated
Deprecated.
readWallConnectionType()
public function readWallConnectionType(string $name) : ?\pocketmine\block\utils\WallConnectionTypeDeprecated
Deprecated.
readWeirdoHorizontalFacing()
public function readWeirdoHorizontalFacing() : intDeprecated
Deprecated.
todo()
public function todo(string $name) : voidUsed to mark unused properties that haven't been implemented yet
