PocketMine-MP 5.43.2 git-a137a986d01d9af23452b2e741699a770c7ae112
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)
 
 missingOrWrongTypeException (string $name, ?Tag $tag)
 
 readBool (string $name)
 
 readBoundedInt (string $name, int $min, int $max)
 
 readInt (string $name)
 
 readString (string $name)
 
 todo (string $name)
 

Detailed Description

Definition at line 37 of file BlockStateReader.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 45 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 55 of file BlockStateReader.php.

◆ checkUnreadProperties()

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

Definition at line 127 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 109 of file BlockStateReader.php.

◆ missingOrWrongTypeException()

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

Definition at line 51 of file BlockStateReader.php.

◆ readBool()

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

Definition at line 63 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 87 of file BlockStateReader.php.

◆ readInt()

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

Definition at line 77 of file BlockStateReader.php.

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

+ Here is the call graph for this function:

◆ readString()

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

Definition at line 96 of file BlockStateReader.php.

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

+ Here is the call graph for this function:

◆ todo()

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

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

Definition at line 120 of file BlockStateReader.php.


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