PHP Class pocketmine\item\enchantment\Enchantment

Show file Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$words

Protected Properties

Property Type Description
$enchantments Enchantment[]

Public Methods

Method Description
equals ( Enchantment $ent )
getActivationType ( )
getEnchantAbility ( Item $item )
getEnchantMaxLevel ( integer $enchantmentId )
getEnchantWeight ( integer $enchantmentId )
getEnchantment ( integer $id )
getEnchantmentByName ( $name )
getId ( )
getLevel ( )
getName ( ) : string
getRandomName ( )
getRarity ( )
getSlot ( )
hasSlot ( $slot )
init ( )
setLevel ( integer $level )

Private Methods

Method Description
__construct ( $id, $name, $rarity, $activationType, $slot )

Method Details

equals() public method

public equals ( Enchantment $ent )
$ent Enchantment

getActivationType() public method

public getActivationType ( )

getEnchantAbility() public static method

public static getEnchantAbility ( Item $item )
$item pocketmine\item\Item

getEnchantMaxLevel() public static method

public static getEnchantMaxLevel ( integer $enchantmentId )
$enchantmentId integer

getEnchantWeight() public static method

public static getEnchantWeight ( integer $enchantmentId )
$enchantmentId integer

getEnchantment() public static method

public static getEnchantment ( integer $id )
$id integer

getEnchantmentByName() public static method

public static getEnchantmentByName ( $name )

getId() public method

public getId ( )

getLevel() public method

public getLevel ( )

getName() public method

public getName ( ) : string
return string

getRandomName() public static method

public static getRandomName ( )

getRarity() public method

public getRarity ( )

getSlot() public method

public getSlot ( )

hasSlot() public method

public hasSlot ( $slot )

init() public static method

public static init ( )

setLevel() public method

public setLevel ( integer $level )
$level integer

Property Details

$enchantments protected static property

protected static Enchantment[],pocketmine\item\enchantment $enchantments
return Enchantment[]

$words public static property

public static $words