PocketMine-MP 5.39.3 git-400eb2dddf91a9c112aa09f3b498ffc8c85e98ed
Loading...
Searching...
No Matches
pocketmine\data\bedrock\block\convert\BlockStateReader Class Reference
+ Collaboration diagram for pocketmine\data\bedrock\block\convert\BlockStateReader:

Public Member Functions

 __construct (private BlockStateData $data)
 
 badValueException (string $name, string $stringifiedValue, ?string $reason=null)
 
 checkUnreadProperties ()
 
 ignored (string $name)
 
 mapIntFromInt (string $name, IntFromRawStateMap $map)
 
 mapIntFromString (string $name, IntFromRawStateMap $map)
 
 missingOrWrongTypeException (string $name, ?Tag $tag)
 
 read5MinusHorizontalFacing ()
 
 readBellAttachmentType ()
 
 readBlockFace ()
 
 readBool (string $name)
 
 readBoundedInt (string $name, int $min, int $max)
 
 readCardinalHorizontalFacing ()
 
 readCoralFacing ()
 
 readEndRodFacingDirection ()
 
 readFacingDirection ()
 
 readFacingFlags ()
 
 readFacingWithoutDown ()
 
 readFacingWithoutUp ()
 
 readHorizontalFacing ()
 
 readInt (string $name)
 
 readLegacyHorizontalFacing ()
 
 readPillarAxis ()
 
 readSlabPosition ()
 
 readString (string $name)
 
 readTorchFacing ()
 
 readUnitEnum (string $name, EnumFromRawStateMap $map)
 
 readWallConnectionType (string $name)
 
 readWeirdoHorizontalFacing ()
 
 todo (string $name)
 

Detailed Description

Definition at line 48 of file BlockStateReader.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\block\convert\BlockStateReader::__construct ( private BlockStateData $data)

Definition at line 56 of file BlockStateReader.php.

Member Function Documentation

◆ badValueException()

pocketmine\data\bedrock\block\convert\BlockStateReader::badValueException ( string $name,
string $stringifiedValue,
?string $reason = null )

Definition at line 66 of file BlockStateReader.php.

◆ checkUnreadProperties()

pocketmine\data\bedrock\block\convert\BlockStateReader::checkUnreadProperties ( )
Exceptions
BlockStateDeserializeException

Definition at line 352 of file BlockStateReader.php.

◆ ignored()

pocketmine\data\bedrock\block\convert\BlockStateReader::ignored ( string $name)

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

Definition at line 334 of file BlockStateReader.php.

◆ mapIntFromInt()

pocketmine\data\bedrock\block\convert\BlockStateReader::mapIntFromInt ( string $name,
IntFromRawStateMap $map )
Deprecated
@phpstan-param IntFromRawStateMap<int> $map
Exceptions
BlockStateDeserializeException

Definition at line 133 of file BlockStateReader.php.

◆ mapIntFromString()

pocketmine\data\bedrock\block\convert\BlockStateReader::mapIntFromString ( string $name,
IntFromRawStateMap $map )
Deprecated
@phpstan-param IntFromRawStateMap<string> $map
Exceptions
BlockStateDeserializeException

Definition at line 122 of file BlockStateReader.php.

◆ missingOrWrongTypeException()

pocketmine\data\bedrock\block\convert\BlockStateReader::missingOrWrongTypeException ( string $name,
?Tag $tag )

Definition at line 62 of file BlockStateReader.php.

◆ read5MinusHorizontalFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::read5MinusHorizontalFacing ( )
Deprecated
This is for trapdoors, because Mojang botched the conversion in 1.13
Exceptions
BlockStateDeserializeException

Definition at line 217 of file BlockStateReader.php.

◆ readBellAttachmentType()

pocketmine\data\bedrock\block\convert\BlockStateReader::readBellAttachmentType ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 294 of file BlockStateReader.php.

◆ readBlockFace()

pocketmine\data\bedrock\block\convert\BlockStateReader::readBlockFace ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 151 of file BlockStateReader.php.

◆ readBool()

pocketmine\data\bedrock\block\convert\BlockStateReader::readBool ( string $name)
Exceptions
BlockStateDeserializeException

Definition at line 74 of file BlockStateReader.php.

References pocketmine\nbt\tag\Tag\getValue().

+ Here is the call graph for this function:

◆ readBoundedInt()

pocketmine\data\bedrock\block\convert\BlockStateReader::readBoundedInt ( string $name,
int $min,
int $max )
Exceptions
BlockStateDeserializeException

Definition at line 98 of file BlockStateReader.php.

◆ readCardinalHorizontalFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::readCardinalHorizontalFacing ( )
Deprecated
Used by pumpkins as of 1.20.0.23 beta
Exceptions
BlockStateDeserializeException

Definition at line 226 of file BlockStateReader.php.

◆ readCoralFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::readCoralFacing ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 234 of file BlockStateReader.php.

◆ readEndRodFacingDirection()

pocketmine\data\bedrock\block\convert\BlockStateReader::readEndRodFacingDirection ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 183 of file BlockStateReader.php.

◆ readFacingDirection()

pocketmine\data\bedrock\block\convert\BlockStateReader::readFacingDirection ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 143 of file BlockStateReader.php.

◆ readFacingFlags()

pocketmine\data\bedrock\block\convert\BlockStateReader::readFacingFlags ( )
Deprecated
Returns
int[] @phpstan-return array<int, int>

Definition at line 160 of file BlockStateReader.php.

◆ readFacingWithoutDown()

pocketmine\data\bedrock\block\convert\BlockStateReader::readFacingWithoutDown ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 242 of file BlockStateReader.php.

◆ readFacingWithoutUp()

pocketmine\data\bedrock\block\convert\BlockStateReader::readFacingWithoutUp ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 254 of file BlockStateReader.php.

◆ readHorizontalFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::readHorizontalFacing ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 192 of file BlockStateReader.php.

◆ readInt()

pocketmine\data\bedrock\block\convert\BlockStateReader::readInt ( string $name)
Exceptions
BlockStateDeserializeException

Definition at line 88 of file BlockStateReader.php.

References pocketmine\nbt\tag\Tag\getValue().

+ Here is the call graph for this function:

◆ readLegacyHorizontalFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::readLegacyHorizontalFacing ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 208 of file BlockStateReader.php.

◆ readPillarAxis()

pocketmine\data\bedrock\block\convert\BlockStateReader::readPillarAxis ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 266 of file BlockStateReader.php.

◆ readSlabPosition()

pocketmine\data\bedrock\block\convert\BlockStateReader::readSlabPosition ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 274 of file BlockStateReader.php.

◆ readString()

pocketmine\data\bedrock\block\convert\BlockStateReader::readString ( string $name)
Exceptions
BlockStateDeserializeException

Definition at line 107 of file BlockStateReader.php.

References pocketmine\nbt\tag\Tag\getValue().

+ Here is the call graph for this function:

◆ readTorchFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::readTorchFacing ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 286 of file BlockStateReader.php.

◆ readUnitEnum()

pocketmine\data\bedrock\block\convert\BlockStateReader::readUnitEnum ( string $name,
EnumFromRawStateMap $map )
Deprecated
@phpstan-template TEnum of \UnitEnum @phpstan-param EnumFromRawStateMap<TEnum, string> $map @phpstan-return TEnum
Exceptions
BlockStateDeserializeException

Definition at line 321 of file BlockStateReader.php.

◆ readWallConnectionType()

pocketmine\data\bedrock\block\convert\BlockStateReader::readWallConnectionType ( string $name)
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 302 of file BlockStateReader.php.

◆ readWeirdoHorizontalFacing()

pocketmine\data\bedrock\block\convert\BlockStateReader::readWeirdoHorizontalFacing ( )
Deprecated
Exceptions
BlockStateDeserializeException

Definition at line 200 of file BlockStateReader.php.

◆ todo()

pocketmine\data\bedrock\block\convert\BlockStateReader::todo ( string $name)

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

Definition at line 345 of file BlockStateReader.php.


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