diff --git a/src/block/VanillaBlocks.php b/src/block/VanillaBlocks.php index 65099ab28..f40f52d57 100644 --- a/src/block/VanillaBlocks.php +++ b/src/block/VanillaBlocks.php @@ -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[] */ diff --git a/src/entity/effect/VanillaEffects.php b/src/entity/effect/VanillaEffects.php index a447613d4..ba2fc27cf 100644 --- a/src/entity/effect/VanillaEffects.php +++ b/src/entity/effect/VanillaEffects.php @@ -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; - } } diff --git a/src/item/VanillaItems.php b/src/item/VanillaItems.php index f9ab3ade7..eba778cba 100644 --- a/src/item/VanillaItems.php +++ b/src/item/VanillaItems.php @@ -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[] */ diff --git a/src/item/enchantment/VanillaEnchantments.php b/src/item/enchantment/VanillaEnchantments.php index 37425bca1..f42039160 100644 --- a/src/item/enchantment/VanillaEnchantments.php +++ b/src/item/enchantment/VanillaEnchantments.php @@ -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; - } }