PHP Class pocketmine\item\Tool

Inheritance: extends Item
Show file Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( $id, $meta, $count = 1, $name = "Unknown" )
getMaxDurability ( ) : integer | boolean TODO: Move this to each item
getMaxStackSize ( ) : integer
isAxe ( )
isHoe ( )
isPickaxe ( )
isShears ( )
isShovel ( )
isSword ( )
isTool ( )
isUnbreakable ( )
useOn ( Entity | Block $object, $type = 1 ) : boolean TODO: Move this to each item

Method Details

__construct() public method

public __construct ( $id, $meta, $count = 1, $name = "Unknown" )

getMaxDurability() public method

TODO: Move this to each item
public getMaxDurability ( ) : integer | boolean
return integer | boolean

getMaxStackSize() public method

public getMaxStackSize ( ) : integer
return integer

isAxe() public method

public isAxe ( )

isHoe() public method

public isHoe ( )

isPickaxe() public method

public isPickaxe ( )

isShears() public method

public isShears ( )

isShovel() public method

public isShovel ( )

isSword() public method

public isSword ( )

isTool() public method

public isTool ( )

isUnbreakable() public method

public isUnbreakable ( )

useOn() public method

TODO: Move this to each item
public useOn ( Entity | Block $object, $type = 1 ) : boolean
$object pocketmine\entity\Entity | pocketmine\block\Block
return boolean