PocketMine
Metadatable Interface Reference
Inheritance diagram for Metadatable:
Block Entity Level Solid Transparent FallingSand Hanging Item Living PrimedTNT Projectile Vehicle

Public Member Functions

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

Member Function Documentation

getMetadata (   $metadataKey)

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

Parameters
string$metadataKey
Returns
MetadataValue[]

Implemented in Player, Level, Entity, and Block.

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 Player, Level, Entity, and Block.

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 Player, Level, Entity, and Block.

setMetadata (   $metadataKey,
MetadataValue  $newMetadataValue 
)

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

Parameters
string$metadataKey
MetadataValue$newMetadataValue
Returns
void

Implemented in Player, Level, Entity, and Block.


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