PocketMine-MP 5.11.1 git-db894e3a4a5bb9a80b3ac07ac91f58bdaf15176a
pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection:

Public Member Functions

 clearDirtyProperties ()
 
 getAll ()
 
 getDirty ()
 
 markAllDirty ()
 
 markDirty (int $key)
 
 set (int $key, MetadataProperty $value, bool $force=false)
 
 setAtomicBatch (array $properties, bool $force=false)
 
 setBlockPos (int $key, ?BlockPosition $value, bool $force=false)
 
 setByte (int $key, int $value, bool $force=false)
 
 setCompoundTag (int $key, CacheableNbt $value, bool $force=false)
 
 setFloat (int $key, float $value, bool $force=false)
 
 setGenericFlag (int $flagId, bool $value)
 
 setInt (int $key, int $value, bool $force=false)
 
 setLong (int $key, int $value, bool $force=false)
 
 setPlayerFlag (int $flagId, bool $value)
 
 setShort (int $key, int $value, bool $force=false)
 
 setString (int $key, string $value, bool $force=false)
 
 setVector3 (int $key, ?Vector3 $value, bool $force=false)
 

Detailed Description

Definition at line 23 of file EntityMetadataCollection.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::__construct ( )

Definition at line 36 of file EntityMetadataCollection.php.

Member Function Documentation

◆ clearDirtyProperties()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::clearDirtyProperties ( )

Clears records of dirty properties.

Definition at line 173 of file EntityMetadataCollection.php.

◆ getAll()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::getAll ( )

Returns all properties.

Returns
MetadataProperty[] @phpstan-return array<int, MetadataProperty>

Definition at line 156 of file EntityMetadataCollection.php.

◆ getDirty()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::getDirty ( )

Returns properties that have changed and need to be broadcasted.

Returns
MetadataProperty[] @phpstan-return array<int, MetadataProperty>

Definition at line 166 of file EntityMetadataCollection.php.

◆ markAllDirty()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::markAllDirty ( )

Marks all properties for resending.

Definition at line 189 of file EntityMetadataCollection.php.

◆ markDirty()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::markDirty ( int  $key)

Marks the selected property for resending.

Definition at line 180 of file EntityMetadataCollection.php.

◆ set()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::set ( int  $key,
MetadataProperty  $value,
bool  $force = false 
)

Definition at line 80 of file EntityMetadataCollection.php.

◆ setAtomicBatch()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setAtomicBatch ( array  $properties,
bool  $force = false 
)

Set a group of properties together. If any of them are changed, they will all be flagged as dirty.

Parameters
MetadataProperty[]$properties@phpstan-param array<int, MetadataProperty> $properties

Definition at line 95 of file EntityMetadataCollection.php.

◆ setBlockPos()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setBlockPos ( int  $key,
?BlockPosition  $value,
bool  $force = false 
)

Definition at line 68 of file EntityMetadataCollection.php.

◆ setByte()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setByte ( int  $key,
int  $value,
bool  $force = false 
)

Definition at line 40 of file EntityMetadataCollection.php.

◆ setCompoundTag()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setCompoundTag ( int  $key,
CacheableNbt  $value,
bool  $force = false 
)

@phpstan-param CacheableNbt<\pocketmine\nbt\tag\CompoundTag> $value

Definition at line 64 of file EntityMetadataCollection.php.

◆ setFloat()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setFloat ( int  $key,
float  $value,
bool  $force = false 
)

Definition at line 53 of file EntityMetadataCollection.php.

◆ setGenericFlag()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setGenericFlag ( int  $flagId,
bool  $value 
)

Definition at line 117 of file EntityMetadataCollection.php.

◆ setInt()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setInt ( int  $key,
int  $value,
bool  $force = false 
)

Definition at line 49 of file EntityMetadataCollection.php.

◆ setLong()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setLong ( int  $key,
int  $value,
bool  $force = false 
)

Definition at line 72 of file EntityMetadataCollection.php.

◆ setPlayerFlag()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setPlayerFlag ( int  $flagId,
bool  $value 
)

Definition at line 135 of file EntityMetadataCollection.php.

◆ setShort()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setShort ( int  $key,
int  $value,
bool  $force = false 
)

Definition at line 45 of file EntityMetadataCollection.php.

◆ setString()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setString ( int  $key,
string  $value,
bool  $force = false 
)

Definition at line 57 of file EntityMetadataCollection.php.

◆ setVector3()

pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setVector3 ( int  $key,
?Vector3  $value,
bool  $force = false 
)

Definition at line 76 of file EntityMetadataCollection.php.


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