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

Public Member Functions

 setMetadata ($metadataKey, MetadataValue $newMetadataValue)
 
 getMetadata ($metadataKey)
 
 hasMetadata ($metadataKey)
 
 removeMetadata ($metadataKey, Plugin $owningPlugin)
 

Detailed Description

Definition at line 26 of file Metadatable.php.

Member Function Documentation

pocketmine\metadata\Metadatable::getMetadata (   $metadataKey)

Returns a list of previously set metadata values from the implementing object's metadata store.

Parameters
string$metadataKey
Returns
MetadataValue[]

Implemented in pocketmine\Player, pocketmine\level\Level, pocketmine\entity\Entity, and pocketmine\block\Block.

pocketmine\metadata\Metadatable::hasMetadata (   $metadataKey)

Tests to see whether the implementing object contains the given metadata value in its metadata store.

Parameters
string$metadataKey
Returns
boolean

Implemented in pocketmine\Player, pocketmine\level\Level, pocketmine\entity\Entity, and pocketmine\block\Block.

pocketmine\metadata\Metadatable::removeMetadata (   $metadataKey,
Plugin  $owningPlugin 
)

Removes the given metadata value from the implementing object's metadata store.

Parameters
string$metadataKey
Plugin$owningPlugin
Returns
void

Implemented in pocketmine\Player, pocketmine\level\Level, pocketmine\entity\Entity, and pocketmine\block\Block.

pocketmine\metadata\Metadatable::setMetadata (   $metadataKey,
MetadataValue  $newMetadataValue 
)

Sets a metadata value in the implementing object's metadata store.

Parameters
string$metadataKey
MetadataValue$newMetadataValue
Returns
void

Implemented in pocketmine\Player, pocketmine\level\Level, pocketmine\entity\Entity, and pocketmine\block\Block.


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