Open GabBiswajit opened 4 months ago
I use $item->getVanillaName() and i get emerald_chestplate so vanilla name use in StringToItemParser that's why i set emerald_chestplate if I need to use armorsapi:emerald_chestplate than can you tell how i get it ?
HI, you can use StringToItemParser::getInstance()->registerAlias()
@ShadowMikado it's work like this : ?
$name = $item->getVanillaName();
StringToItemParser::getInstance()->registerAlias($name);
public function registerAlias(string $existing, string $alias) : void{
While attempting to register an emerald chestplate item using the
CustomiesItemFactory
class, the following code snippet is used:Subsequently, an attempt is made to parse the string
"emerald_chestplate"
into an item using theStringToItemParser
class. However, this operation is returningnull
.Please address this issue. Thank you! 🥲