PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\metadata\LevelMetadataStore Class Reference
+ Inheritance diagram for pocketmine\metadata\LevelMetadataStore:
+ Collaboration diagram for pocketmine\metadata\LevelMetadataStore:

Public Member Functions

 disambiguate (Metadatable $level, $metadataKey)
 
 setMetadata ($subject, $metadataKey, MetadataValue $newMetadataValue)
 
 getMetadata ($subject, $metadataKey)
 
 hasMetadata ($subject, $metadataKey)
 
 removeMetadata ($subject, $metadataKey, Plugin $owningPlugin)
 

Detailed Description

Definition at line 26 of file LevelMetadataStore.php.

Member Function Documentation

pocketmine\metadata\MetadataStore::getMetadata (   $subject,
  $metadataKey 
)
inherited

Returns all metadata values attached to an object. If multiple have attached metadata, each will value will be included.

Parameters
mixed$subject
string$metadataKey
Returns
MetadataValue[]
Exceptions
\Exception

Definition at line 70 of file MetadataStore.php.

References pocketmine\metadata\MetadataStore\disambiguate().

+ Here is the call graph for this function:

pocketmine\metadata\MetadataStore::hasMetadata (   $subject,
  $metadataKey 
)
inherited

Tests to see if a metadata attribute has been set on an object.

Parameters
mixed$subject
string$metadataKey
Returns
bool
Exceptions
\Exception

Definition at line 89 of file MetadataStore.php.

References pocketmine\metadata\MetadataStore\disambiguate().

+ Here is the call graph for this function:

pocketmine\metadata\MetadataStore::removeMetadata (   $subject,
  $metadataKey,
Plugin  $owningPlugin 
)
inherited

Removes a metadata item owned by a plugin from a subject.

Parameters
mixed$subject
string$metadataKey
Plugin$owningPlugin
Exceptions
\Exception

Definition at line 102 of file MetadataStore.php.

References pocketmine\metadata\MetadataStore\disambiguate().

+ Here is the call graph for this function:

pocketmine\metadata\MetadataStore::setMetadata (   $subject,
  $metadataKey,
MetadataValue  $newMetadataValue 
)
inherited

Adds a metadata value to an object.

Parameters
mixed$subject
string$metadataKey
MetadataValue$newMetadataValue
Exceptions
\Exception

Definition at line 43 of file MetadataStore.php.

References pocketmine\metadata\MetadataStore\disambiguate(), and pocketmine\metadata\MetadataValue\getOwningPlugin().

+ Here is the call graph for this function:


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