hasName()){ $nbt->setTag($this->namedtag->getTag("CustomName")); } } protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{ if($item !== null and $item->hasCustomName()){ $nbt->setString("CustomName", $item->getCustomName()); } } }