PHP Class pocketmine\item\Tool

Inheritance: extends Item
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getMaxDurability() public méthode

TODO: Move this to each item
public getMaxDurability ( ) : integer | boolean
Résultat integer | boolean

getMaxStackSize() public méthode

public getMaxStackSize ( ) : integer
Résultat integer

isAxe() public méthode

public isAxe ( )

isHoe() public méthode

public isHoe ( )

isPickaxe() public méthode

public isPickaxe ( )

isShears() public méthode

public isShears ( )

isShovel() public méthode

public isShovel ( )

isSword() public méthode

public isSword ( )

isTool() public méthode

public isTool ( )

isUnbreakable() public méthode

public isUnbreakable ( )

useOn() public méthode

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