mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Removed Vanilla*::fromString()
these were misbegotten and should never have existed. If someone really needs these for some reason, they can use getAll()[name].
This commit is contained in:
@ -113,10 +113,4 @@ final class VanillaEnchantments{
|
||||
$result = self::_registryGetAll();
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function fromString(string $name) : Enchantment{
|
||||
/** @var Enchantment $result */
|
||||
$result = self::_registryFromString($name);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user