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:
Dylan K. Taylor 2021-11-08 18:52:14 +00:00
parent f93b5be789
commit a1ecdc27e5
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
4 changed files with 0 additions and 24 deletions

View File

@ -581,12 +581,6 @@ final class VanillaBlocks{
self::_registryRegister($name, $block);
}
public static function fromString(string $name) : Block{
$result = self::_registryFromString($name);
assert($result instanceof Block);
return $result;
}
/**
* @return Block[]
*/

View File

@ -109,10 +109,4 @@ final class VanillaEffects{
$result = self::_registryGetAll();
return $result;
}
public static function fromString(string $name) : Effect{
$result = self::_registryFromString($name);
assert($result instanceof Effect);
return $result;
}
}

View File

@ -381,12 +381,6 @@ final class VanillaItems{
self::_registryRegister($name, $item);
}
public static function fromString(string $name) : Item{
$result = self::_registryFromString($name);
assert($result instanceof Item);
return $result;
}
/**
* @return Item[]
*/

View File

@ -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;
}
}