PHP Interface pocketmine\metadata\Metadatable

Afficher le fichier Open project: ClearSkyTeam/ClearSky Interface Usage Examples

Méthodes publiques

Méthode Description
getMetadata ( string $metadataKey ) : MetadataValue[] Returns a list of previously set metadata values from the implementing object's metadata store.
hasMetadata ( string $metadataKey ) : boolean Tests to see whether the implementing object contains the given metadata value in its metadata store.
removeMetadata ( string $metadataKey, pocketmine\plugin\Plugin $owningPlugin ) : void Removes the given metadata value from the implementing object's metadata store.
setMetadata ( string $metadataKey, MetadataValue $newMetadataValue ) : void Sets a metadata value in the implementing object's metadata store.

Method Details

getMetadata() public méthode

Returns a list of previously set metadata values from the implementing object's metadata store.
public getMetadata ( string $metadataKey ) : MetadataValue[]
$metadataKey string
Résultat MetadataValue[]

hasMetadata() public méthode

Tests to see whether the implementing object contains the given metadata value in its metadata store.
public hasMetadata ( string $metadataKey ) : boolean
$metadataKey string
Résultat boolean

removeMetadata() public méthode

Removes the given metadata value from the implementing object's metadata store.
public removeMetadata ( string $metadataKey, pocketmine\plugin\Plugin $owningPlugin ) : void
$metadataKey string
$owningPlugin pocketmine\plugin\Plugin
Résultat void

setMetadata() public méthode

Sets a metadata value in the implementing object's metadata store.
public setMetadata ( string $metadataKey, MetadataValue $newMetadataValue ) : void
$metadataKey string
$newMetadataValue MetadataValue
Résultat void