use pocketmine\item\Item; $diamondSword = Item::get(Item::DIAMOND_SWORD);
$name = $diamondSword->getName();Overall, the `pocketmine\item` package library provides a wide range of functions for working with items, including creating, manipulating, and displaying them in the game.