PHP 인터페이스 pocketmine\metadata\Metadatable

파일 보기 프로젝트 열기: ClearSkyTeam/ClearSky 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getMetadata() 공개 메소드

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

hasMetadata() 공개 메소드

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

removeMetadata() 공개 메소드

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
리턴 void

setMetadata() 공개 메소드

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