Skip to content

StringToEnchantmentParser ​

final class · pocketmine\item\enchantment\StringToEnchantmentParser · source

Extends StringToTParser

Handles parsing enchantments from strings. This is used to interpret names in the /enchant command.

Methods ​

parse() ​

php
public function parse(string $input) : ?\pocketmine\item\enchantment\Enchantment

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.