GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
Metadatable Interface Reference

Public Member Functions

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

Member Function Documentation

◆ getMetadata()

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, Block, and OfflinePlayer.

◆ hasMetadata()

hasMetadata (   $metadataKey)

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

Parameters
string$metadataKey
Returns
bool

Implemented in Player, Level, Entity, Block, and OfflinePlayer.

◆ removeMetadata()

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, Block, and OfflinePlayer.

◆ setMetadata()

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, Block, and OfflinePlayer.


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